From 105bba28d6749817754034b1b074998cb4645812 Mon Sep 17 00:00:00 2001 From: mavsan Date: Sat, 11 Jan 2025 12:25:20 +1000 Subject: [PATCH] Update attach.blade.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Не передаются заданные для поля Attach значения Attach:make(...)->errorTypeMessage('...')->errorMaxSizeMessage('...') Работу errorMaxSizeMessage не проверял, другие аспекты тоже. Но "вроде бы" все остальное работает, как надо :) --- resources/views/fields/attach.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/fields/attach.blade.php b/resources/views/fields/attach.blade.php index b87c336f4..71145d18f 100644 --- a/resources/views/fields/attach.blade.php +++ b/resources/views/fields/attach.blade.php @@ -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