2023-04-26 23:41:34 +08:00
|
|
|
{{--
|
|
|
|
@url - URL to upload to.
|
|
|
|
@placeholder - Placeholder text
|
|
|
|
@successMessage
|
|
|
|
--}}
|
|
|
|
<div component="dropzone"
|
|
|
|
option:dropzone:url="{{ $url }}"
|
|
|
|
option:dropzone:success-message="{{ $successMessage }}"
|
|
|
|
option:dropzone:error-message="{{ trans('errors.attachment_upload_error') }}"
|
|
|
|
option:dropzone:upload-limit="{{ config('app.upload_limit') }}"
|
|
|
|
option:dropzone:upload-limit-message="{{ trans('errors.server_upload_limit') }}"
|
|
|
|
option:dropzone:zone-text="{{ trans('entities.attachments_dropzone') }}"
|
|
|
|
option:dropzone:file-accept="*"
|
|
|
|
class="relative">
|
2023-04-27 06:31:38 +08:00
|
|
|
<div refs="dropzone@status-area"></div>
|
2023-04-26 23:41:34 +08:00
|
|
|
<button type="button"
|
|
|
|
refs="dropzone@select-button dropzone@drop-target"
|
|
|
|
class="dropzone-landing-area text-center">
|
|
|
|
{{ $placeholder }}
|
|
|
|
</button>
|
|
|
|
</div>
|