Facebook4media - mp3 playing in browser, not downloading

ryan's Avatar

ryan

07 Sep, 2011 04:09 PM

The expected behavior here is to have the mp3 download prompt pop up when the link is clicked. However, it is instead playing in the browser window. Is there a way to force the download prompt to come up?

  1. 1 Posted by ryan on 07 Sep, 2011 04:36 PM

    ryan's Avatar

    Solved (thanks Jesse). FYI for anyone else seeing this problem, put the MP3 in its own directory and create an .htaccess file containing the following text:


    ForceType application/octet-stream
    Header set Content-Disposition attachment

    Then save the .htaccess file to the directory. The mp3 will come up as a download prompt.

  2. 2 Posted by ryan on 07 Sep, 2011 05:11 PM

    ryan's Avatar

    Sorry, i didn't properly format the code in that last comment. Here it is:

    <Files *.mp3> ForceType application/octet-stream Header set Content-Disposition attachment </Files>

  3. Jesse von Doom closed this discussion on 05 Feb, 2013 09:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac