Populate the FileUpload Field with uploaded image on EditProfile page
Hi, I'm using a
SpatieMediaLibraryFileUpload
field on my EditProfile
page to upload a profile picture. The uploading and saving works, but if I navigate to the edit page again, the FileUpload
field will be empty. I want to populate the field with the already uploaded image. The image is uploaded to the related model UserProfile
. How can I achieve this? This is my code for the field:
2 Replies