RE: [PHP-WIN] saving images which have been assigned a strange name
| From: | Darvin Andrioli | Date: | Mon, 09 Apr 2001 11:16:04 +0000 |
| Subject: | RE: [PHP-WIN] saving images which have been assigned a strange name | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-6577@lists.php.net to get a copy of this message | ||
I've got the same problem with IE 4.01, so I looked for it at MIcrosoft and I got:
According to RFC 2183, servers should be able to force a Save-As type dialog box by sending a
"Content-Disposition: attachment" server response header to the client when sending the
requested file back to the browser. Because of a bug (or "feature") in Internet
Explorer's data-sniffing architecture, this header is mostly ignored in Internet Explorer 4.01.
See Knowledge Base article BUG: Content-Disposition: Does not Force File Download Dialog <http://msdn.microsoft.com/isapi/gosupport.asp?TARGET=/support/kb/articles/q182/3/15.asp>
At the moment I never made test using IE 5, probably, I'll run it in future.
Bye
Darvin
-----Original Message-----
From: Urmil Parikh [SMTP:urmil@ti.com]
Sent: Monday, April 09, 2001 12:35 PM
To: Php Windows (E-mail)
Subject: RE: [PHP-WIN] saving images which have been assigned a strange name
I did not try Content-Length, but I have tried Content-Type with
Content-Disposition which did not work.
Regards, | Linux
Urmil Parikh | Is it really safe to turn on your computer?
-----Original Message-----
>It has happened with me too. IE takes the download filename from the URL
one
>clicks to download it.
Not if you send out the correct headers:
header("Content-Type: $mimetype";
header("Content-Length: $filelength");
header("Content-Disposition: attachment; filename=$filename");
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net