IE7 File download issue

IE7: To download a file when i click on a button in a page, a new browser window is opened and if the response in the new window has
the response header "Content-disposition" set to "attachment;
filename='<fileName>'". Then the file is not downloaded. The downloading
dailog is shown but never completes.
Looks like new browser window and content-disposition don't go hand in hand.
Is this an expected behaviour. If so please explain why



Answer this question

IE7 File download issue

  • Kamii47

    I'm experiencing the same thing using pdflib for php. Any suggestions for alternatives to get a (pdf) file opening in the browser

  • Rajy Rawther

    Hello everyone,

    I have the same problem, anyone help me please!!


  • feby

    We are seeing a similar problem. We set window.location of a frame in our application to a URL that downloads a file - http://docserver/app/dowloader. The response includes the content-type and content-disposition header and the contents of the document. This works great in IE 6, FF 1.5 and 2.0, but now in IE we get a "to protect your security, IE blocked this site from downloading files to your computer" message.

    If the user clicks the header bar and tries to allow the download the entire frameset of our application is refreshed - effectively logging the user out of the application.



  • IE7 File download issue