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 PROTECTED]
> * Thus wrote Magnetotron ([EMAIL PROTECTED]):
> > 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."



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to