Re: PHP download problem IE5 on mac

From: Date: Fri, 15 Nov 2002 00:01:49 +0000
Subject: Re: PHP download problem IE5 on mac
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124524@lists.php.net to get a copy of this message
IE5 Mac is a *B I T C H* with file downloads. It doesn't behave like any tutorial suggests it should. Justin French on 15/11/02 1:22 AM, Ernest E Vogelsinger (ernest@vogelsinger.at) wrote: > At 15:13 14.11.2002, Javier Montserat spoke out and said: > --------------------[snip]-------------------- >> I'm using this code to various files for download via a http header - >> >> $filename = basename($filepath); >> header("Content-type: unknown/unknown"); >> header("Content-Disposition: attachment; filename=$filename"); >> readfile($filepath); >> >> works fine in most cases - the save dialogue appears. However - >> >> IE on a MAC loads the file inline rather than throwing the save prompt. > --------------------[snip]-------------------- > > Try the "application/octet-stream" content type. Any browser should ask to > save this. > Justin French -------------------- http://Indent.com.au Web Developent & Graphic Design --------------------

« previous php.general (#124524) next »