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.