[thelist] Downloading files with a Mac

CV cervantes_vive at yahoo.com
Thu Sep 5 18:07:01 CDT 2002


I have a site with some files in a propietary format.
How can I convince Mac browsers to pop-up the 'Save'
dialog rather than display it on the screen as
garbage?

Under Windows the default behavior for unknown mime
types & file extensions is to ask whether to open or
save but on Mac browsers the file is always displayed
on the screen.

On the server end I send out the file with: (it's php)

Header( "Content-Type: application/octet-stream" );
Header( "Content-Length:" . filesize( $filepath ) );
Header( "Content-Disposition: attatchment;
filename=$filename" );
Header( "Content-Location:
$HTTP_HOST/downloadcache/$filename" );

On the Mac (OS 9) I have configured in the Control
Panel->Internet->Helper Apps to open the file with my
custom app (just in case)

Under the respective browser preferences I have set
the 'File Helpers' to handle my particular extension &
mime.

Still tho something is not right as the file is always
displayed.

Rebundling the files as a hqx or some other compressed
format is (complicating things) not an option.

Thanks,

C



__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com



More information about the thelist mailing list