NYCPHP Meetup

NYPHP.org

[nycphp-talk] Anyway to force a download of GIF file?

DeWitt, Michael mjdewitt at alexcommgrp.com
Thu Jul 17 15:46:23 EDT 2003


Jerry,

"force-download" seems to work fine on the PC.  The Mac is still just
displaying the image inline.

Thanks for your help.

Mike 

> -----Original Message-----
> From:	Jerry Kapron [SMTP:nyphp at NewAgeWeb.com]
> Sent:	Thursday, July 17, 2003 3:41 PM
> To:	NYPHP Talk
> Subject:	Re: [nycphp-talk] Anyway to force a download of GIF file?
> 
> Mike,
> Change 
>     header("Content-type: 'application/octet-stream");
> to
>     header('Content-type: application/force-download');
> It should fix the Mac problem.  However IE on Mac seems to totally ignore
> the Content-disposition header and will prompt to save as a .php file.
>  
> Jerry
> 
> 



More information about the talk mailing list