How to force Firefox to download mp3 file?
Solution 1
Firefox Menu => Options => Applications
Choose "Save As" for (.mp3) (audio/mpeg) and also for (.mp3) (audio/x-mpeg)
Solution 2
Open about:config
and change media.play-stand-alone
to false
.
According to this answer on mozilla support, you should change media.windows-media-foundation.enabled
back to the default value.
Edit: On older versions of Firefox media.windows-media-foundation.play-stand-alone
helps.
Solution 3
A makeshift workaround is to mangle the address, like this:
data:text/html,<a href="http://www.example.com">bla</a>
Replacing http://www.example.com
with your actual URL, of course. This results in a link being displayed where you can right click and use “Save Link As”.
Rookie
Updated on September 18, 2022Comments
-
Rookie over 1 year
Somehow my Firefox reverted to old behaviour, and now it plays all mp3 files from URL in my browser. I want it to ask for download location.
I have tried several things such as:
- Firefox settings -> Programs -> ... no option for "save as" there. Edit: actually i see "save as" option there now, but when i select it, it still plays on the browser even after reopening firefox.
- about:config / media.windows-media-foundation.enabled -> false
- AppData\Roaming\Mozilla\Firefox\Profiles\n74u0loi.default\mimeTypes.rdf -> NC:saveToDisk="true"
But I cant get it to work.
Firefox version: 28.0 (newest)
Edit: yet not found the solution. still forced to right click every mp3 file...
-
Nauf_M about 9 yearsI can't advise about firefox settings, but as workaround you may try FlashGot. It allows downloading all files (including
.mp3
s) from page in 3 clicks. -
Rookie about 9 years@LogicDaemon, downloading all files isnt very friendly when i only need one. Those kind of downloaders also have the problem that its very hard to find the file you want to download from the page.
-
Nauf_M about 9 yearswell, if you usually download few files from page, then yes, this is not applicable.
-
Rookie about 10 yearsAs i edited a while ago, that makes no difference when i selected "save as". (for some reason that option wasnt even there a while ago, maybe because i edited mimeTypes.rdf?).
-
NoNameProvided about 10 yearsThis is not an answer for his question. Although more easy workaround is right clicking on the player or even on the link and select save as in the context menu.
-
Daniel B about 10 yearsIt's not always possible to do that, for example with server-side redirects.
-
Rookie about 10 years@NoNameProvided, yeah that works sure, but its tedious to do multiple times in row.
-
Rookie about 10 yearsI just wonder why people upvote answers that doesnt solve the problem at all. Do they even read comments before upvoting?
-
harrymc almost 10 yearsWelcome to SuperUser. Please note that while your answer may be correct for Linux, the question was about Windows.
-
Nauf_M about 9 yearsWelcome to SuperUser! Note that I'm not a topicstarter. For me, there is no option
media.play-stand-alone
in 31.5.0, actual option name ismedia.windows-media-foundation.play-stand-alone
. Default istrue
, and file plays in browser. When I set it tofalse
, clicking on the file causes download window to appear. Shall I addmedia.play-stand-alone
? Please edit your answer to clarify concerns. -
Fabian H. about 9 years@LogicDaemon Thanks for the input. I'm not an expert, I just found this question, and somwhere else the answer, so I thpught I put it here. I don't know the difference
between media.windows-media-foundation.play-stand-alone
andmedia.play-stand-alone
, I can only assume thatmedia.play-stand-alone
is for all kinds of media, andmedia.windows-media-foundation.play-stand-alone
is for windows media foundation files only? Ifmedia.windows-media-foundation.play-stand-alone
works for you, I gues that is good as well. -
Ramhound about 9 years@LogicDaemon - If you don't have
media.play-stand-alone
then your not using the current version of Firefox. -
Nauf_M about 9 years@Rookie they upvote because it worked for them or at least they found answer useful. But only you can mark question as accepted.