© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Karim Bakhsh

Previewing files in file Uploader

I have a created a custom view for updating a record which has the content of a record in it including a file uploader. Among the data that is passed to the view, there is an array called
attachments
attachments
which holds the path to some files related to that respective record.

What I would like to do is, to view those files in file uploader, so I can remove them or reorder them.
I have tried passing the
attachments
attachments
array to
->default()
->default()
method of the file uploader, but it does not work.

I ve explored the documentation, and searched on the internet, but found nothing useful. I wonder if someone can help me out to figure the solution out.

File paths in
attachments
attachments
array looks like this
subfolder/filename.jpeg
subfolder/filename.jpeg
.
Files are in public folder, so they are publicly accessible.
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

Previewing Images from Database in File Upload Section
FilamentFFilament / ❓┊help
2y ago
Filament: Editing file upload - not previewing
FilamentFFilament / ❓┊help
7mo ago
How to increase maximum file uploader size
FilamentFFilament / ❓┊help
14mo ago
FileUpload Previewing with File Name not based on Stored Field
FilamentFFilament / ❓┊help
2y ago