Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

How can I override server mime types, to always get mp3/rar/sid/bin files directly to the 'where do you want to save this file' dialog?

  • 5 Antworten
  • 5 haben dieses Problem
  • 2 Aufrufe
  • Letzte Antwort von cor-el

more options

I used to be able to click MP3 files, way back when, and Firefox would ask where I wanted to save them. Nowadays it opens a new tab with a flash player. Clicking on 'unknown' files, like .sid, .prg, .zip, .rar pops up 'This is a BIN file. [Cancel] [Save]'. It does not give me a checkbox for 'always do this'. I would like the option to edit so that some file types, such as PDF, regardless of mimetype, always get opened in a new tab if clicked. Also some file types, based on extension, always go directly to 'Where do you want to save the file?' dialog box, regardless if there's a builtin player or viewer or not. In my Firefox (41.0.1 Ubuntu 14.04LTS 32-bit) I never get the 'do this for these files always' choice anymore. Googling led me to delete my mimeTypes.rdf file, and since then even 'well known' file extensions, like .zip, are treated as BIN files and I get the Cancel-or-Save box for those, too - again without the choice to 'always save BIN files'.

I used to be able to click MP3 files, way back when, and Firefox would ask where I wanted to save them. Nowadays it opens a new tab with a flash player. Clicking on 'unknown' files, like .sid, .prg, .zip, .rar pops up 'This is a BIN file. [Cancel] [Save]'. It does not give me a checkbox for 'always do this'. I would like the option to edit so that some file types, such as PDF, regardless of mimetype, always get opened in a new tab if clicked. Also some file types, based on extension, always go directly to 'Where do you want to save the file?' dialog box, regardless if there's a builtin player or viewer or not. In my Firefox (41.0.1 Ubuntu 14.04LTS 32-bit) I never get the 'do this for these files always' choice anymore. Googling led me to delete my mimeTypes.rdf file, and since then even 'well known' file extensions, like .zip, are treated as BIN files and I get the Cancel-or-Save box for those, too - again without the choice to 'always save BIN files'.

Ausgewählte Lösung

Those file are send as Content-Type: application/octet-stream and Content-Disposition: attachment; For files send that way you can't save an automatic action. You can see that in the Network monitor.

Content-Disposition: attachment; filename="TURRICAN_AMIGA_PORT.sid";
Content-Type: application/octet-stream
Diese Antwort im Kontext lesen 👍 1

Alle Antworten (5)

more options

Firefox can play MP3 files natively with the HTML5 media player (i.e. it is not a Flash player that you see).

To prevent that you can set media.gstreamer.enabled to false on the about:config page.

The choice to do this automatically is only available when the server sends the file with a valid MIME type and not when a generic content type like application/octet-stream is used.

more options

Thanks! - That solved one of my questions, in that MP3 files now are clickable - and even gave me the option to choose to always do this in the future - saving the file locally.

Any tips on how to recreate this success for other mime types or file extensions?

more options

You would need a copy of the previous mimeTypes.rdf file to recover those actions. Otherwise you would have to wait until you come across a link to such a file where Firefox allows to save the action.

more options

Well, here's such a link: Clicking on either the .sid or .prg download on the page http://csdb.dk/release/?id=141841 (under Download; a site for Commodore 64 releases), gives me the "You have chosen to open the file Turrican.sid which is a BIN file

[ ]  Open it as [Text (dropdown menu of choices)]
[x] Save file
[Cancel] [Ok]"

No option to choose 'always do this for this file type' in the dialog box. :/

more options

Ausgewählte Lösung

Those file are send as Content-Type: application/octet-stream and Content-Disposition: attachment; For files send that way you can't save an automatic action. You can see that in the Network monitor.

Content-Disposition: attachment; filename="TURRICAN_AMIGA_PORT.sid";
Content-Type: application/octet-stream