Re: set filename of file open/download
| From: | Justin French | Date: | Fri, 23 Aug 2002 16:03:24 +0000 |
| Subject: | Re: set filename of file open/download | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113805@lists.php.net to get a copy of this message | ||
> However, some users systems are configured to allow the choice of open
> or saveas. The problem is that when the user selects saveas the
> filename it uses is the name of the php script which streams the file,
> not the actual filename of the file. How do I set this filename?
Read the endless user comments in the manual: php.net/header
There are hundreds of code samples, but end of the day, there are bugs in IE
versions, etc etc... I haven't ever been able to get it to work for every
browser.
In fact, even the very useful article on Zend about protecting file
downloads doesn't seem to set the right filename for me...
Justin French