Re: Problem with forced downloads via HTTP headers..
| From: | Curt Zirzow | Date: | Tue, 12 Aug 2003 01:07:21 +0000 |
| Subject: | Re: Problem with forced downloads via HTTP headers.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159215@lists.php.net to get a copy of this message | ||
* Thus wrote Magnetotron (magnetotron@hotmail.com):
> Can anyone verify / solve the problem I am having with downloading an
> image..
>
> <?php
> $fpath = "../tmp/";
> $fname = "somefile.jpg";
>
> header( "Pragma: no-cache\n" );
> header( "Content-type: image/jpg\n" );
Should be image/jpeg.
> header( "Content-Disposition: attachment; filename=\"$fname\"\n" );
Don't know if that is the problem but its worth a shot right now,
mozilla usually is more trusting with reading headers than IE.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."