Think about Loose Coupling | |
PerlMonks |
Re: Re: Getting CGI to name a file it returnsby trantor (Chaplain) |
on Jul 17, 2001 at 20:28 UTC ( [id://97363]=note: print w/replies, xml ) | Need Help?? |
First you have to actually create a file under your server's DocumentRoot, which could not be as obvisous as it seems if you don't have the permissions. Second, the file is potentially visible by other users too, and you must remember to erase it. Otherwise the filesystem will fill up and the file would be at other client's perusal. Third, you must carefully choose how to create the temp dir, or the same problems/race conditions associate to temp files would potentially show up. Fourth, MIME headers are so cool in this context :-) Nonetheless your solution is probably the quickest, but a security-proof implementation can be more painful than it seems. <SIGNATURE>-- TIMTOWTDI</SIGNATURE>
In Section
Seekers of Perl Wisdom
|
|