IE9 automatic downloading using PHP
Hi
I use the following snippet of PHP code to initiate a download.
ob_start ();
header ( "Content-Type: application/octet-stream" );
header ( 'Content-Disposition: attachment; filename=' . $file_name );
header ( "Content-Length: $file_size" );
ob_end_flush ();
readfile ( $folder . "/" . $file_name );
This worked previously with IE8,7 and still works with fireFox and chrome. In IE9 nothing happens and no error messages etc. are shown. Previous versions of IE would show the Information Bar or similar and then allow downloading to occur based on user action
(click the bar to allow etc.). This is http, not https. What do I have to do to make this work with IE9
Richard Williams
December 29th, 2010 11:04am
Hi,
According to your description, I suggest to ask IE development Forum for further help:
http://social.msdn.microsoft.com/Forums/en/iewebdevelopment/threads
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and
other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
Leo Huang
TechNet Subscriber Support
in forum. If you have any feedback on our support, please contact
tngfb@microsoft.comPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
December 30th, 2010 2:04am
Thanks. I've asked the same question in the forum you suggested.
December 30th, 2010 4:54am