Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Getting CGI to name a file it returnsby cLive ;-) (Prior) |
on Jul 17, 2001 at 11:59 UTC ( [id://97265]=note: print w/replies, xml ) | Need Help?? |
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. Or am I missing something? cLive ;-)
In Section
Seekers of Perl Wisdom
|
|