[Classiccity-pm] help a lazy programmer
Darrell Golliher
darrell at golliher.net
Tue Sep 16 15:31:15 CDT 2003
It's been a very long time since I last implemeted a CGI that handles
HTTP upload. Anybody have an especially cleaver way to clean up the
filenames obtained from the upload() method of CGI.pm?
Files sent using IE on a windows box look like this.. "C:\Some
Directory\the file.txt". Files sent using Mozilla on Windows of Linux
just look like this "the file.txt".
File::Basename was my first guess, but how to tell if I should use
fileparse_set_fstype("MSDOS") or fileparse_set_fstype("MacOS") or even
VMS or AmigaOS.
tia,
-Darrell
More information about the Classiccity-pm
mailing list