Forum Moderators: open

Message Too Old, No Replies

How to enforce audio to download

My audio links start playing automatically

         

hasanali

10:36 am on Nov 15, 2005 (gmt 0)

10+ Year Member



On my website, I have links to download Audio / Videos. When a user clicks on those links, then the file will start playing.

Is there a way to ensure that files do not start playing automatically, and instead the user is prompted to save the file.

regards

JAB Creations

8:07 pm on Nov 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That depends on the medium of which you failed to specify. Are these links directly linked to the media or to pages containing the media? What medium of a plugin (if the media is loaded on a page and not directly). Answer these and someone here should be able to answer your question.

bcolflesh

8:17 pm on Nov 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have to send a MIME header that doesn't have a corresponding handler on the user's system - if you tell us what scripting language you use we can point you to some examples.

kaled

10:49 am on Nov 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've never tried it but anonymous ftp might work for you. I believe you would have to move the files to a dedicated directory and link to them as ftp://myftpdir/downloadme.wav etc. I think the server needs to support this and there is some setting up involved but I don't think it is too tricky.

Kaled.

jecasc

4:47 pm on Nov 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The most simple way would be to let the user choose if he wants to play the file or safe it.

Simply place a text which says "To safe the file on your harddisk right click on the link and choose 'save target as'".