© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
1 reply
Kyle

Just get the original filename?

Is there a way to get the uploaded file's original filename in
afterStateUpdated
afterStateUpdated
of a FileUpload field? I want to keep the randomly-generated filename, but I want to get the original filename so I can
$set()
$set()
the text of some other fields based on the original filename of the uploaded file.
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

Original filename in preview and download, but custom stored filename in FileUpload
FilamentFFilament / ❓┊help
3y ago
Unable to store the original CSV file and access the filename from an Importer
FilamentFFilament / ❓┊help
2y ago
FileUpload visibility('private') and original filenames
FilamentFFilament / ❓┊help
10mo ago
How come filename include the directory
FilamentFFilament / ❓┊help
3y ago