good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: CGI upload script problem with Explorer.by Ieronim (Friar) |
on Jul 25, 2006 at 17:53 UTC ( [id://563598]=note: print w/replies, xml ) | Need Help?? |
Generally it is a very bad idea to create a file basing on the name received from the upload field. If the possibility of overwriting files with 'same names' is necessary, i'd create a DBM file with names of uploaded files as keys and names of files on the server as values. The names of files on server could be e.g. generated with File::Temp. And you can add any extra logic on the stage of creating new keys in DB.
s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print
In Section
Seekers of Perl Wisdom
|
|