WWW FAQs: How do I force the browser to save an audio file to disk instead of playing it right away?


2006-09-02: See How do I force the browser to save a video file to disk instead of playing it right away? You will use exactly the same technique. Just substitute the correct filename for your audio file (myfile.mp3, for instance) and the correct content type as well (audio/mp3).

Legal Note: yes, you may use sample HTML, Javascript, PHP and other code presented above in your own projects. You may not reproduce large portions of the text of the article without our express permission.

Got a LiveJournal account? Keep up with the latest articles in this FAQ by adding our syndicated feed to your friends list!