note 21824 deleted from function.header by sniper
| From: | sniper@php.net | Date: | Sun, 07 Sep 2003 21:28:21 +0000 |
| Subject: | note 21824 deleted from function.header by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55602@lists.php.net to get a copy of this message | ||
Note Submitter: simon.lee@terago.ca
----
There has been a nasty bug in IE 5 and even 6.0 (applied SP2 still couldn't fix it) which makes
IE hangs when user cancels file download for several times (MS Knowledge base Q266305)
Here is my workaround:
header("Content-type: application/octet-stream");
header("Content-Disposition: filename=$myfile" . "%20");
In this case, we avoid the bug by not using "attachment" in Content-Disposition. Now, IE
thinks that the file has an unknown extension which forces it to pop up the download box. When you
save file, %20 doesn't get saved. However, IE does add [number] in the file name which is
acceptable in my case.
E.g. filename.xls will become filename[1].xls
This is even a workaround for Q281119: Internet Explorer Saves HTML Content Instead of the Active
Document. (Especially we can't always assume users update their machine with lastest service
packs)
Simon Lee
Webmaster@terago.ca
TeraGo Networks Inc.