WordPress.org

Forums

Force download of mp3 files (instead of streaming) (10 posts)

  1. jyaruss
    Member
    Posted 10 years ago #

    Well, not sure if this is the right forum for this question, but you all tend to be pretty damn good so...

    Usually, when one clicks an mp3 link, it defaults to streaming. Is there a way to make mp3 files default to popping up the "save as" dialogue on my site? Maybe with a plugin or something? You know, so people don't have to right click and choose "save target"? Maybe?

  2. Beel
    Member
    Posted 10 years ago #

    It does not "usually default to streaming" unless the user chose that as the default option. If I click on the link, my browser opens the player I chose to play the file, if I right click and select "save", it is downloaded. I could have set my browser to "automatically save files with this extension" but didn't.

  3. jyaruss
    Member
    Posted 10 years ago #

    I wasn't quite clear - I didn't mean that it streams. In fact, it seems to load the whole thing and then play it in an embedded quicktime player. I figured out how to get it to stop doing that in Firefox, but not in MIE. Any thoughts?

  4. khalidasweila
    Member
    Posted 10 years ago #

    How exactly did you get Firefox to stop doing streaming mp3
    s automatically and ask you what to do? I've been trying for hours now!

  5. jyaruss
    Member
    Posted 10 years ago #

    Tools -> Options -> Downloads -> Plug-Ins... -> then find the mp3 extension and uncheck the checkmark. After that, Firefox should ask you if you want to download when you click on the file.

    I still haven't figured out how to do this in Internet Explorer.

  6. Beel
    Member
    Posted 10 years ago #

  7. jyaruss
    Member
    Posted 10 years ago #

    Beel: Didn't quite do it. Seems like it should, but it doesn't. In MIE, it still just goes to a blank page with an embedded quicktime slider.

  8. dss
    Member
    Posted 10 years ago #

    This is different for PC and Mac (what else is new) on a mac, you can simply create an m3u file which is a link to the mp3 file. So the mac downloads it.

    It is my understanding that on a PC it is entirely the opposite...

    Bah!

  9. Reggie98
    Member
    Posted 10 years ago #

    This solution requires the user know what to do.

    I have a program download.php which I use to force downloads for any type of file including .jpeg .mp3

    There is an example on my Chinese blog http://www.reggie.net/chinese/?p=16

    If there is demand, I could remove the personal bits and make the program public.

  10. Reggie98
    Member
    Posted 9 years ago #

    In response to demand, I've put the PHP code on a diary page: http://www.reggie.net/diary/2006/08/31/downloadphp-code-for-forcing-download-of-mp3s-jpegs/

Topic Closed

This topic has been closed to new replies.

About this Topic