#Wrong `filename` shown and used in `FileUpload`

8 messages · Page 1 of 1 (latest)

red copper
#

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 and with filename but when FileUpload displaying the document it uses name attribute of 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 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 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.

tight estuaryBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

red copper
#

Bump

pastel parrot
#

Might be a Filepond thing

#

Maybe we need to implement headers(headersString);

red copper
pastel parrot
#

Where is this mentioned? I just saw the comment:

Can call the header method to supply FilePond with early response header string