Click to See Complete Forum and Search --> : download links


scoogy
01-30-2003, 01:49 PM
How does one create a download link to an mp3 file located on the same site, such that the download would start automatically?

gil davis
01-30-2003, 01:55 PM
You do not have any control over how the browser treats links. If the client knows what an mp3 is, it will go play it. If it doesn't, it will ask the user what he wants to do about it.

You especially cannot do anything like that automatically, as that would violate security protocols.

Stefan
01-31-2003, 12:38 AM
Theoretically you could trigger download of eg an mp3 by sending it with eg a .zip mimetype. However in reality this won't work, since IE is broken and compleatly ignore the mimetype sent from the webserver.

scoogy
01-31-2003, 05:11 AM
How do "real" sites do it - links that start a software download, for example?

gil davis
01-31-2003, 06:09 AM
With server-side code.

esher2292
02-08-2003, 03:46 PM
they simply upload to the server the file then have a link to something like

www.yoursite.com/music/ec212.mp3


Just like that..


Also see the post called "Download Link"


esher2292