[support] IE and passthru
Jørn Fauske
jfauske at gmail.com
Tue Jun 28 16:29:32 UTC 2011
Try
header('Content-disposition: attachment; filename=filename.jpg');
--Jørn
On Tue, Jun 28, 2011 at 4:58 PM, Fred Jones <fredthejonester at gmail.com> wrote:
> I am using this code:
>
> // send the right headers
> header("Content-Type: application/force-download");
> header("Content-Type: application/octet-stream");
> header("Content-Type: application/download");
> header("Content-Length: " . filesize($name));
> // dump the picture and stop the script
> fpassthru($fp);
>
> to deliver a JPG image for the user to download. The requirements are
> that it be done via PHP code. It works in FF but they say in IE it
> just shows the image in the browser.
>
> Anyhow know how to get IE to also download it?
>
> Thanks.
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>
More information about the support
mailing list