I know there are several versions of this question here, but I've tried as many of the recommendations in them as I can, yet it doesn't seem to work. Most of those suggest setting the Content-Disposition header item. From the JS frontend, I've set it using
Content-Disposition: attachment; filename=*"Dbase%20%20%20Emails%20-%20Copy.xlsx";
filename="Dbase%20%20%20Emails%20-%20Copy.xlsx"
<or>
Content-Disposition: attachment; filename=*UTF-8''Dbase%20%20%20Emails%20-%20Copy.xlsx
<or>
encodeURI("Dbase Emails - Copy.xlsx")
<or>
filename="Dbase Emails - Copy.xlsx"
Or I've tried setting it on the response header, a golang backend, with pretty much the same form, but Firefox continues to ignore whatever is passed across in the header, and you see under "File" in the devtools a decoded: "Dbase Emails - Copy.xlsx" and in the response header, you see correctly, this:
attachment; filename=*"Dbase%20%20%20Emails%20-%20Copy.xlsx";
filename="Dbase%20%20%20Emails%20-%20Copy.xlsx"
That seems right, what can I do to make Firefox download it as the correct name?
Thanks - Kev
I'd attempted all I could try from previous issues such as:
How to encode the filename parameter of Content-Disposition header in HTTP?