Skip to content

Commit

Permalink
Error Notifications Are Not Passing Correctly in Attach (#2934)
Browse files Browse the repository at this point in the history
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. :)
  • Loading branch information
mavsan authored Jan 11, 2025
1 parent e2f5f2f commit e8b0210
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 e8b0210

Please sign in to comment.