The regex I've used for file uploads is:
# Remove the file path information, if needed if ( $file =~ /([^\/\\]+)$/ ) { $filename = $1; # Set the filename } else { $filename = $file; }
Hope that helps,
Jeremy
In reply to Re: CGI upload script problem with Explorer.
by jfluhmann
in thread CGI upload script problem with Explorer.
by jdtoronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |