From e8b021018c471b8eb276d5a7c57ab506a69e13c2 Mon Sep 17 00:00:00 2001 From: mavsan Date: Sat, 11 Jan 2025 18:00:01 +1000 Subject: [PATCH] Error Notifications Are Not Passing Correctly in Attach (#2934) The values specified for the `Attach` field (`Attach::make(...)->errorTypeMessage('...')->errorMaxSizeMessage('...')`) are not being passed correctly. I haven't tested the functionality of `errorMaxSizeMessage` yet, nor have I verified other aspects. However, it seems that nothing is broken, and everything else works as expected. :) --- 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