> Note: If you ever use them in file posts, don't forget to clean the file > names, especially when it comes from Windows machine... >
I've found this to be reasonably portable for getting just the filename (sans path) - YMMV my ($name) = $upload->filename =~ m!([^/\\]*$)!; --Geoff