in reply to Getting CGI to name a file it returns
This may be too obvious, but why not output/copy the file to a randomly created temp dir in your web site and then print a Location header that points to it? Using CGI:
If MIME type is unknown, browser will then ask you to save, using same filename.print CGI::redirect('http;//my.url.of.temp.file');
Or am I missing something?
cLive ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Getting CGI to name a file it returns
by trantor (Chaplain) on Jul 17, 2001 at 20:28 UTC | |
by cLive ;-) (Prior) on Jul 20, 2001 at 22:19 UTC | |
by Guildenstern (Deacon) on Jul 20, 2001 at 22:55 UTC |
In Section
Seekers of Perl Wisdom