Closed Bug 1686025 Opened 5 years ago Closed 5 years ago

MIME type overrides file extension of blob download

Categories

(Firefox :: File Handling, defect)

Firefox 84
defect

Tracking

()

RESOLVED DUPLICATE of bug 1684183

People

(Reporter: David.Gausmann, Unassigned)

Details

Attachments

(1 file)

Attached file test.htm

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.

Component: Untriaged → File Handling
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: