© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
6 replies
czehnter

Populate the FileUpload Field with uploaded image on EditProfile page

Hi, I'm using a
SpatieMediaLibraryFileUpload
SpatieMediaLibraryFileUpload
field on my
EditProfile
EditProfile
page to upload a profile picture. The uploading and saving works, but if I navigate to the edit page again, the
FileUpload
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
UserProfile
. How can I achieve this? This is my code for the field:

SpatieMediaLibraryFileUpload::make('profile_picture')
              ->image()
              ->collection('profile_pictures')
SpatieMediaLibraryFileUpload::make('profile_picture')
              ->image()
              ->collection('profile_pictures')
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

FileUpload component doesn't show uploaded image
FilamentFFilament / ❓┊help
3y ago
FileUpload not showing the preview of the uploaded image from the CDN in the Edit Page
FilamentFFilament / ❓┊help
3y ago
Custom EditProfile page not rendering the form
FilamentFFilament / ❓┊help
2y ago