© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Kleis

File upload not showing after reload

I have added a FileUpload field.
                FileUpload::make('photos')
                ->disk('public')
                ->directory(function(\App\Models\Apartment $record) { return 'apartments/'.$record->name.'/photos/'; })
                ->preserveFilenames()
                ->multiple()
                ->reorderable()
                FileUpload::make('photos')
                ->disk('public')
                ->directory(function(\App\Models\Apartment $record) { return 'apartments/'.$record->name.'/photos/'; })
                ->preserveFilenames()
                ->multiple()
                ->reorderable()

When I try to upload a image, it shows the progress bar correcly, then a preview of the uploaded image, when I save the page the file is stored correctly in the directory requested and the database field is updated.
-rw-r--r-- 1 semweb users 341K Aug 11 10:27 Peugeot_e-208_dynamic_front34.jpg
photos: "["apartments\/A\/photos\/\/Peugeot_e-208_dynamic_front34.jpg"]",
-rw-r--r-- 1 semweb users 341K Aug 11 10:27 Peugeot_e-208_dynamic_front34.jpg
photos: "["apartments\/A\/photos\/\/Peugeot_e-208_dynamic_front34.jpg"]",

photos is text field and has array cast in the model

However when I reload the admin page the image is not shown anymore, and theres no resource failed to load in the network monitor.
Any ideas ?
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

File upload not returning url after upload
FilamentFFilament / ❓┊help
2y ago
preview file after upload
FilamentFFilament / ❓┊help
15mo ago
How to get file size after file upload?
FilamentFFilament / ❓┊help
2y ago
upload file
FilamentFFilament / ❓┊help
2y ago