fsmla3 has asked for the wisdom of the Perl Monks concerning the following question:
It worked fine before I switched everything to mod_perl. Now it works for the most part, but on the initial dialog it uses the name of the script (e.g. 'download.pl') as the name of the file to be downloaded. Later, when the user is presented the browse dialog to save the file, the default save name is correct (in the above example 'requested_data.zip'), but I'd rather not have users freaking out because they think they're downloading something else.print $query->header(-type=>'application/octet-stream' -attachment=>'requested_data.zip');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl download header
by Corion (Patriarch) on Oct 06, 2001 at 02:20 UTC |