Prompting for save

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
  I'm serving up files, in this case mp3's and these should be saved
instead of played.

Content-Disposition: attachment; filename=some_song_name.mp3

I had been printing this on the following line:
Content-type: audio/mpeg3

  Now, all this works for me in IE (isn't it always IE), but some IE
customers (probably IE7) wind up having the song played instead of
prompted for save. One customer says he doesn't have this issue on
Amazon and iTunes. What does Amazon and iTunes know that I don't and
what can I do to improve the odds of getting it "right"?


Re: Prompting for save

Quoted text here. Click to load it

Why don't you simply do the same as Amazon and iTunes?

Re: Prompting for save

On Mon, 09 Feb 2009 21:34:52 -0500, Jeff put finger to keyboard and

Quoted text here. Click to load it

Send it as application/octet-stream instead of specifying it as audio.
That way, IE (and other browsers) will usually treat it as a
downloadable file rather than trying to open it directly.

A Miscellany Of Good Stuff:

Site Timeline