How to force Firefox to download mp3 file?

9,306

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”.

Share:
9,306
Rookie
Author by

Rookie

Updated on September 18, 2022

Comments

  • Rookie
    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
      Nauf_M about 9 years
      I can't advise about firefox settings, but as workaround you may try FlashGot. It allows downloading all files (including .mp3s) from page in 3 clicks.
    • Rookie
      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
      Nauf_M about 9 years
      well, if you usually download few files from page, then yes, this is not applicable.
  • Rookie
    Rookie about 10 years
    As 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
    NoNameProvided about 10 years
    This 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
    Daniel B about 10 years
    It's not always possible to do that, for example with server-side redirects.
  • Rookie
    Rookie about 10 years
    @NoNameProvided, yeah that works sure, but its tedious to do multiple times in row.
  • Rookie
    Rookie about 10 years
    I just wonder why people upvote answers that doesnt solve the problem at all. Do they even read comments before upvoting?
  • harrymc
    harrymc almost 10 years
    Welcome to SuperUser. Please note that while your answer may be correct for Linux, the question was about Windows.
  • Nauf_M
    Nauf_M about 9 years
    Welcome 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 is media.windows-media-foundation.play-stand-alone. Default is true, and file plays in browser. When I set it to false, clicking on the file causes download window to appear. Shall I add media.play-stand-alone? Please edit your answer to clarify concerns.
  • Fabian H.
    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 and media.play-stand-alone, I can only assume that media.play-stand-alone is for all kinds of media, and media.windows-media-foundation.play-stand-alone is for windows media foundation files only? If media.windows-media-foundation.play-stand-alone works for you, I gues that is good as well.
  • Ramhound
    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
    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.