[EMAIL PROTECTED] wrote: > On Oct 4, 9:59 pm, Mohit Sindhwani <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] wrote: >> >>> Hi, >>> >>> Our Rails application allows WAV file downloads. The user clicks on a >>> link, or >>> clicks a button, and the WAV file gets sent as a response, using >>> send_file. >>> >>> It looks like IE is discarding the initial WAV file and passing the >>> URL to Windows >>> Media Player. Windows Media Player then re-requests the file!! >>> >>> In addition to the performance problems, this design problem causes >>> failures in the >>> case of the download being initiated from a POST, since the re-request >>> from the >>> Media Player is only a GET, not a POST. >>> >>> How do I prevent this re-request? >>> >> I have found that the way that works for me (I use this for PNG) is to >> serve it up with the mime type 'application/unknown' so that IE does not >> try to interpret what program should handle the information coming down. >> >> Cheers, >> Mohit. >> 10/5/2008 | 10:59 AM. >> > > > I tried setting the 'type' to 'application/unknown'. > > The problem persists. The Windows Media Player re-requests the file, > using an http GET request. > > Any ideas? Does it work in Firefox? Does it show that the MIME type is unknown? Sorry, I'm out of ideas for now in that case. Hopefully someone else can help.
Cheers, Mohit. 10/8/2008 | 12:56 AM. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

