© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
8 replies
Zamion101

Wrong `filename` shown and used in `FileUpload`

I have a custom disk where I encrypt the document at rest and using a Controller to authorize request and decrypt at rest. I am also using FileUpload Field to upload this documents.
Upload, Encrypt/Decrypt and Controller works fine.
In the controller I am returnin
Conntent-Disposition
Conntent-Disposition
and with
filename
filename
but when FileUpload displaying the document it uses
name
name
attribute of
Media
Media
which is fine if this was the problem but actuallu it just uses the last section of the url used to fetch the document.

Name of the file becomes
13
13
which is the id of the Media record as well as the id used in the URL.
But as you can see in the last screenshot
filename
filename
is present. FilePond also uses headers to first determine the filename. I looked source code of the filament and other places but couldn't find any plausible place where the problem may originate.
image.png
image.png
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

Original filename in preview and download, but custom stored filename in FileUpload
FilamentFFilament / ❓┊help
3y ago
ImportAction bypass FileUpload and pass filename directly
FilamentFFilament / ❓┊help
16mo ago
FileUpload store path instead of filename
FilamentFFilament / ❓┊help
3y ago