Skip to content

Commit

Permalink
Update attach.blade.php
Browse files Browse the repository at this point in the history
Не передаются заданные для поля Attach значения
Attach:make(...)->errorTypeMessage('...')->errorMaxSizeMessage('...')

Работу errorMaxSizeMessage не проверял, другие аспекты тоже. Но "вроде бы" все остальное работает, как надо :)
  • Loading branch information
mavsan authored Jan 11, 2025
1 parent e2f5f2f commit 105bba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/fields/attach.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class="attach"
data-attach-upload-url-value="{{ $uploadUrl ?? route('platform.systems.files.upload') }}"
data-attach-sort-url-value="{{ $sortUrl ?? route('platform.systems.files.sort') }}"

data-uploader-error-size-value="{{ __('File ":name" is too large to upload') }}"
data-uploader-error-type-value="{{ __('The attached file must be an image') }}"
data-attach-error-size-value="{{ $errorMaxSizeMessage }}"
data-attach-error-type-value="{{ $errorTypeMessage }}"

data-action="
drop->attach#dropFiles:prevent
Expand Down

0 comments on commit 105bba2

Please sign in to comment.