the file does not appear in the repeater fileUpload (Custom Page)
I have this repeater(photo 1)
and a i have this data (photo 2)
code:
All fields are updated except the photo, could anyone tell me why?
16 Replies
Make sure photo is fillable on the model.
Sorry for the delay, my model has the photo as fillable, the photo appears in the strage public
Are there any console errors in dev tools for the image?
this is my console. for some reason the photo field needs to be an array to not give this error
Ok. FileUpload is always an array since it could be multiple. But you’re getting a 500. That will need more information for to help with. Anything in the laravel log?
Seems like a server issues and not a filament issue though.
But maybe we can figure it out.
i understood
Thank you but this doesn’t help. A stacktrace starting on line 52 is skipping a lot of relevant code and also isn’t a dev tools error.
I did it with an image from the web and it didn't work
these are the last 100 lines of my log
the console does not show errors
this is my record in the database
What does imagr have to do with filament? Just feel like there’s a lot of missing information here that makes it more difficult for any of isn’t it help.
I understand, could you tell me if the filament FileUpload is capable of receiving a $set('name of repeater', ['photo' => 'image link']), and as soon as the set is executed it places the photo in the inside FileUpload?
It’s entirely capable. You just have to understand that the FileUpload field expects an array and is also dependent on the storage facade of laravel.
OK, thank you very much for your help, I'll try my best to see what's going on