সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

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 উত্তরসমূহ
  • 5 এই সমস্যাটি আছে
  • 26 দেখুন
  • শেষ জবাব দ্বারা 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'.

সমাধান চয়ন করুন

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
প্রেক্ষাপটে এই উত্তরটি পড়ুন। 👍 1

All Replies (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

চয়ন করা সমাধান

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