mp3 download in HTML

liunx

Guest
I was wondering if its possible to make so that when a person clicks on a link to an mp3 on my website, it doesnt try to play it in IE, rather it just opens the file Download <!--more--> box, and saves the file to a user specified directory. Ive looked everywhere for help on this and asked various friends, but no one seems to know, the best ive gotten is "make them .zip files" but i would rather keep the extension in tact so that the less computer savvy people will be able to figure out how to use the mp3s, and so that they wont end up with 2 files of the same size (for those that dont clean their computers). Please Help<br />
-narf<!--content-->Whether they are played or Download <!--more-->ed is up to the browser and server. There are a few things you can do though.<br />
1. Rename the file extension from mp3 to MP3. <br />
2. Give people instructions to right click>>save as<br />
3. Using javascript, detect if the person is using IE. If they are, you can use execCommand('SaveAs')<!--content-->i will try that, thanks... you said its up to the server, I have full access to anything on the server including IIS, so if this makes it eaiser, let me know. <br />
Thanks<!--content-->If you don't have the MIME type for MP3 set up, it will Download <!--more--> the file. I THINK!<!--content-->tried the renaming to MP3, that didnt work, i must have it setup to play that type of file also... I wish there were an easy attribute to edit to make it automatically Download <!--more-->, how do i use Javascript to see if a user is running IE?<!--content-->
 
Back
Top