Re: [PHP] Problem with forced downloads via HTTP headers..

2003-08-14 Thread Magnetotron
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" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTEC

[PHP] Problem with forced downloads via HTTP headers..

2003-08-12 Thread Magnetotron
Hello, Can anyone verify / solve the problem I am having with downloading an image.. The following test works fine in every browser I've tried except in mozilla for windows. Mozilla appends .php to the file name when prompted to save or open. In IE, I can save it to disk or open it, and the ass

Re: [PHP] Problem with forced downloads via HTTP headers..

2003-08-11 Thread Curt Zirzow
* Thus wrote Magnetotron ([EMAIL PROTECTED]): > Can anyone verify / solve the problem I am having with downloading an > image.. > > $fpath = "../tmp/"; > $fname = "somefile.jpg"; > > header( "Pragma: no-cache\n" ); > header( "Content-type: image/jpg\n" ); Should be image/jpeg. > header( "