| MIME Type - forcing download
|
txbakers

msg:4201309 | 6:51 pm on Sep 13, 2010 (gmt 0) | Right now, when a person clicks on a link to an mp3 file, the mime type is set to automatically play (or try to play) the file. I'd like to force the browser to download the file rather than start playing it. Is there a way to locally override the mime type directions in the HTML code? THANKS.
|
lammert

msg:4201473 | 2:21 am on Sep 14, 2010 (gmt 0) | You can try to send the Content-Disposition header with the file. I am not sure it is interpreted correctly by all browsers though. As an example to force a download dialog which tries to safe the mp3 file with the name example.mp3: Content-Disposition: attachment;filename="example.mp3"
|
|
|