more useful options | |
PerlMonks |
Re^3: CGI upload script problem with Explorer.by Ieronim (Friar) |
on Jul 25, 2006 at 22:27 UTC ( [id://563655]=note: print w/replies, xml ) | Need Help?? |
So, if you are sure that your users won't put any funny characters in their filenames, just remove the caret character from the regex in your code. Different browsers set differen names for uploaded files, but all of them include the base name. If i'm not mistaken, [\w-.] cannot be a path separator on any system.
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
|
|