MIME type overrides file extension of blob download
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: David.Gausmann, Unassigned)
Details
Attachments
(1 file)
892 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Steps to reproduce:
One internal website creates files with an xml structure using blobs. The files have a custom file extension (not xml, but the content is xml). As mime type I use "text/xml; charset=UTF-8".
(See attachment for an example.)
Actual results:
The file extension is overwritten by Firefox since version 84. Up to version 83 it was correct. Chrome also doesn't replace the extension.
Expected results:
The specified file name in the download link should be used without replacing the file extension (regardless of the specified mime-type).
As a workaround I can use "application/octet-stream", but since the content of the file is xml, I would prefer text/xml.
![]() |
||
Updated•5 years ago
|
Updated•5 years ago
|
Description
•