-
Notifications
You must be signed in to change notification settings - Fork 901
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] Repeatable field delete images on update operation #5728
Comments
Based on the information provided in the knowledge sources, it appears that there is indeed a known issue with the Several users have reported similar issues:
The Backpack team is aware of these issues and is working on a major refactoring of the uploader functionality to address these and other uploader-related problems. As mentioned by a contributor in one of the issues: "We are aware of some issues related with uploaders and we have already a big PR to update them. The PR is in testing phase. #5478" Github Issue #5549 As a temporary workaround, you mentioned that changing the field type from Unfortunately, the knowledge sources don't provide a definitive explanation for why the For now, it's recommended to:
If you need a more immediate solution, you might want to consider creating a custom field type or overriding the update method in your CRUD controller to handle the image uploads manually. However, these approaches would require more advanced customization of Backpack. ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Github Issue (open): [Bug] CRUD Repeatable field with sub field image. Use withFiles param path broken file after update model. |
I have same problem |
Hey @cod3rshotout Sorry for the inconvenience. We are aware of similar uploader issues and have a PR ready to fix them. Unfortunately, this PR requires a breaking change. So, it will included in the upcoming Backpack v7.0, along with other fixes and features that require a breaking change. Hopefully, Backpack v7 will launch in January 2025. You can help us by sharing your field definition and relationship code. If it differs from other reported issues, we'll put that to the test. |
Bug report
I'm using this repeatable field to handle a list of images:
What I did
I have created a record with a list of images, all of them was created succesfully. Then I have updated the entity without inserting any images (just text changes) and the images has gone.
What I expected to happen
When no new images are inserted then they shouldn't be removed.
What happened
The images was removed but I just updated a text field.
What I've already tried to fix it
If I change the type in "upload" all works well, but why?
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug... is it still there?yes.
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:backpack/basset: 1.3.6
backpack/crud: 6.7.43
backpack/filemanager: 3.0.10
backpack/generators: v4.0.7
backpack/logmanager: v5.0.2
backpack/medialibrary-uploaders: 1.2.1
backpack/pagemanager: 3.3.2
backpack/permissionmanager: 7.2.1
backpack/pro: 2.2.29
backpack/settings: 3.1.1
backpack/theme-tabler: 1.2.15
The text was updated successfully, but these errors were encountered: