SpatieMediaLibraryFileUpload show uploaded images
Hey! 👋
I want to use the Form Builder inside a Widget to upload images. The upload is working and my media files are stored on disk and in the media table. When i reload the page the uploaded images are gone. Storage path is linked and i have no console errors. The Field inside a Resource on the edit page it works.
Any idea what i'm doing wrong?
3 Replies
And here my
Page.php
:
to start with, you have multiple fields with the same name. this is a big nono
the reason why its not filling is because youre not calling
$this->form->fill([])
you dont need to pass anything but an empty array, but not calling it at all will mean nothing is filledThank you Dan! Perfect instructions - now it works! 🙏