RE: [PHP] Mac IE File download problem - any solutions?

From: Date: Tue, 25 Mar 2003 20:03:57 +0000
Subject: RE: [PHP] Mac IE File download problem - any solutions?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141001@lists.php.net to get a copy of this message
This is not a MAC IE problem, it is the way browsers work. If the MIME type is mapped to an application, the browser will launch the application. IE does it inline, while Netscape tends to launch it separately. You can send false headers with a made up type and a missing file extension, but then the browser will not know what type of file it is and the save as is harder for the user as they have to put the right extension on. It is a work around, but a really poor one. header("Content-disposition: filename=$filenamewithoutextension"); header("Content-type:reallyreallyreallybigcsv"); -----Original Message----- From: Step Schwarz [mailto:step@theschwarzgroup.com] Sent: Tuesday, March 25, 2003 11:49 AM To: Daniel Leighton; php-general@lists.php.net Subject: Re: [PHP] Mac IE File download problem - any solutions? [...] > The problem: When downloading certain files on a Mac using IE 5.x, files are > displayed within a browser window instead of downloading. This seems to occur > mostly with quicktime files (.mov, .mp3). Some quicktime files work, while > others with the same extension do not. [...] Hi Daniel, I believe this is a browser setting, is it not? Using the default setup of Explorer 5.2 for Mac, a clicked .mov file will play in IE. To change this behavior, go to Explorer > Preferences... > File Helpers, select QuickTime Movie and click Change... then switch Handling from "View with Browser" to "Save to File". I would be surprised if a file header could override this.. but if you find a way, please let us know! -Step

« previous php.general (#141001) next »