Today I found that:
Content-Disposition: attachment;filename=document.pdf
can NOT be changed to
Content-Disposition: inline;filename=document.pdf
It MUST be
Content-Disposition: inline
without the filename - if you want it to work in IE.
Got the idea after reading:
http://indiwiz.com/2009/03/11/forcing-http-download/
Reading a bit more in http://www.ietf.org/rfc/rfc2183.txt
I found my dynamic download to work nice when these headers where set:
Content-Type:
Content-Disposition:
No comments:
Post a Comment