Re: IE8 doesn't show open/save dialog when opening PDF
Milan <email@example.com> wrote:
> Rob, very kind from you but...
>> I tested this on IE8 and it works fine.
>> (without the fake contentLength)
> it doesn't work... I'll try to attach here sample tomcat/java project in
> my next post.
I have a php script on my website that, for each .pdf file, allows the user
the choice to just open it or to offer it for download. In that case
these headers are added:
header('Content-disposition: attachment; filename="'.$file.'"');
header('Last-Modified: '.gmdate('D, d M Y H:i:s',filemtime($file)).' GMT');
It works fine. Also with IE8. I get a popup that allows me to open,
save, or cancel.
When using the other option, I omit the Content-disposition header and
it opens in the Adobe Reader plugin without asking questions.
No problem in IE8 apparently. Maybe a problem in your site or in your
settings of IE8.