Re: IE can't download, FF can: SSL ? Need special headers?
| From: | Dee Ayy | Date: | Fri, 22 May 2009 19:41:12 +0000 |
| Subject: | Re: IE can't download, FF can: SSL ? Need special headers? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292986@lists.php.net to get a copy of this message | ||
That's what I had in my first post. What are the rest of your headers?
This is what is now deployed and I consider this issue resolved, but
allowing spaces in the filename across IE, FF, and Safari browsers
would be the real solution. It's untested on other browsers:
header('Content-Description: File Transfer');
header('Content-Type: '.$type);
header('Content-Disposition: attachment;
filename='.basename(str_replace(' ', '_', $name)));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
header('Content-Length: '.$size);
echo $data;