Re: IE can't download, FF can: SSL ? Need special headers?
| From: | Ashley Sheridan | Date: | Sat, 23 May 2009 06:53:53 +0000 |
| Subject: | Re: IE can't download, FF can: SSL ? Need special headers? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293003@lists.php.net to get a copy of this message | ||
On Fri, 2009-05-22 at 14:41 -0500, Dee Ayy wrote:
> 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;
Nope, you missed out the quotes on the particular heading I was drawing
attention to hence my not printing the other headings.
Ash
www.ashleysheridan.co.uk