Re: Problem with forced downloads via HTTP headers..

From: Date: Tue, 12 Aug 2003 03:33:30 +0000
Subject: Re: Problem with forced downloads via HTTP headers..
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-159231@lists.php.net to get a copy of this message
Ok, I changed it to image/jpeg, and now the filename is.... somefile.jpg.jpeg No matter what I do, Mozilla for windows wants to append another extension on the filename based on the mime type. Mozilla under linux works fine... "Curt Zirzow" <curt@zirzow.dyndns.org> wrote in message news:20030812010721.GR379@bagend.shire... > * 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."

« previous php.general (#159231) next »