[thelist] Forcing download dialog box

Anthony Baratta Anthony at Baratta.com
Thu Feb 14 20:19:01 CST 2002


At 04:40 PM 2/14/2002, Dave Stevens wrote:
>is there anyway to force the user's browser to bring up the "download
>file" dialog box (or equivalent in non-IE browsers) using just HTML?
>I need an mp3 to download, not play from its current location.

If you have access to the mime types, like via .htaccess in Apache, you can
set the mime type of the file to octet-stream and fool most browsers. IE
will still look at the extension and do what Bill wants it to do.
----
Anthony Baratta
President
Keyboard Jockeys

"Conformity is the refuge of the unimaginative."




More information about the thelist mailing list