Posted by kdarling on 10/17/06 22:09
Paul Jones wrote:
> I have a download button on my website where the user can choose to
> download an MP3 file. How do I take the user to the standard "Save As"
> dialog in XP rather than to play the MP3 (which is all I've managed to
> do thus far)? If possible, I'd rather avoid asking the user to
> right-click over the button and choose "Save Target As".
If you can change the HTTP settings on the server, set the Content-Type
in the reply header to be "application/octet-stream". Most browsers
will then give the user the chance of saving it.
Kev
[Back to original message]
|