Re: file download through php
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: file download through php

From: <aljosa.mohorovic@gmail.com>
Date: Mon Apr 03 2006 - 10:28:56 CEST

"IE also ignores the suggested filename in the Content-disposition
header" and also Safari will not properly display non latin1 charsets.
my solution for download link:
URL: http://www.example.com/download.php/$file_id/$file_name
1. download.php can be replaced using mod_rewrite into something more
readable
2. $file_id can be location of file or anything else
3. $file_name is used only to indicate filename to browser and can be
string with any character and IE,Firefox and Safari will display
properly filename for download

and about IE strange problem? would like to know how to fix it but
because i have no time I've gone with "inline" instead "attachment" for
Content-Disposition.
Received on Mon May 1 02:47:02 2006