You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the problem is our Image field is unnecessarily sending the stored path("string") when no file is selected, causing the validation error. where if filled it - it expects base64.
Bug report
What I did
Let's have a CRUD controller with these fields:
What I expected to happen
Let's add the two images at the same time on a new object:
Screen.Recording.2024-10-24.at.22.40.24.mp4.mp4
All good!
Let's modify the second now:
Screen.Recording.2024-10-24.at.22.43.10.mp4.mp4
As you can see the first of the two fields raises a validation error, though:
What happened
Image validation has some bugs when using more than one image field on the same CRUD controller
Note: the same error is reported even if the image is in a repeatable/relationship field's subfield
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:The text was updated successfully, but these errors were encountered: