© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Hugo

Is it possible to display a different file name on FileUpload?

Hello.
I am saving the original file names in a column and the filepath (with the random generated filename) in another column. Once the files have been uploaded, I'd like to know if there is any way to display the name instead of the random generated one.

I am retrieving all the files the following way:
            ->formatStateUsing(fn($record) => $record !== null ? $record->justifications->pluck('path')->toArray() : null)
            ->formatStateUsing(fn($record) => $record !== null ? $record->justifications->pluck('path')->toArray() : null)

and the result, as expected is something like shown in the picture.
I'd like to know if there is any way I can replace the file names (highlighted in the picture) by the ones in the "name" column.
image.png
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.. Change file name on display?
FilamentFFilament / ❓┊help
3y ago
Is it possible to hide a header part on the FileUpload preview?
FilamentFFilament / ❓┊help
3y ago
Is it possible to execute an action for a FileUpload field on submit?
FilamentFFilament / ❓┊help
2y ago
SpatieMediaLibraryFileUpload: Display original file name
FilamentFFilament / ❓┊help
3y ago