Repeater shows only the first item on edit form
Hi, newbie here. I am using repeater to allow user to upload images when create article.
The repeater repeatedly displays only the first image that was originally uploaded on edit form
I have checked the data in the mutateFormDataBeforeFill function. The array of images ($data['images']) appears to contain all the uploaded images, but for some reason, only the first image is being displayed repeatedly.
the mutateFormDataBeforeFill function:
Appreciate any insights on how I might resolve this issue.
2 Replies
Hi, If anyone has thoughts or needs more details, please inform me. Thanks in advance!
Not sure whether that will work with the spatie file upload. But at least the array structure is wrong. Why don’t you use
multiple()
on the file upload?