Re: Downloading files

From: Date: Wed, 10 Apr 2002 04:34:55 +0000
Subject: Re: Downloading files
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-92340@lists.php.net to get a copy of this message
On Wednesday 10 April 2002 08:54, Jim Koutoumis wrote: > Using this method,.. works OK if you choose to save the file, however if > you choose to open the file you get a weird behaviour where IE says it > can't find the file and a subsequent prompt to create a new one. Does > anyone know why it does this and how to overcome it ? > > At this stage I've resorted to using some simple javascript to prevent a > user clicking on a file and advising them to use right-click save-as until > I come up with a more reliable method. Try removing the "Expires" & "Cache-Control" headers. I doubt you'll be able to find a reliable way that works under all flavours of IE. Some versions of IE tries to open file regardless of what you tell it to do. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* While most peoples' opinions change, the conviction of their correctness never does. */

« previous php.general (#92340) next »