-
Notifications
You must be signed in to change notification settings - Fork 898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Upload Field Inside Repeatable Field Not Working Correctly #5657
Comments
Hello there! Thanks for opening your first issue on this repo! Just a heads-up: Here at Backpack we use GitHub Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that. Backpack communication channels:
Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch. Thank you! -- |
I aware that the |
It's strange but rename 'fields' to 'subfields' helped for me. Like this:
Also I've noticed that for a "relation" repeatable field this line pass a wrong model. src/app/Library/Uploaders/Support/RegisterUploadEvents.php#120 So I had to do |
Description:
The
upload
field within arepeatable
field is not functioning correctly. The issue occurs when attempting to save the form. Despite setting a disk or leaving it unset, the image is not saved in the corresponding storage folder. I have reviewed the view for therepeatable
field for any suspicious elements, but nothing seems out of place. When I set theupload
field in the subfields, it loads the viewcrud::fields.upload
, but when I try to usedd()
to debug, it doesn't seem to reach thesedd()
statements, making me question which view is actually being loaded.Code:
Additional Information:
I am aware that the
withFiles
attribute can accept an array of options, including setting the disk, but this does not work either.Steps to Reproduce:
author_image
field.Expected Behavior:
The image should be saved in the specified disk when the form is submitted.
Backpack, Laravel, PHP, DB version
Bypass the error
Actually searching for a solution, if I find one I will add it in the comments section below.
Maybe the error is because i'm doing something wrong with the repeatable field.
I hope this helps you.
Thannks in advance ❤️
The text was updated successfully, but these errors were encountered: