My workaround in Windows to the space in file names (which the *nix don't allow) are the following:
(1) Use an underscore instead of space in file names
(2) Surround the file name with quotes if spaces are retained
(3) Use the hex representation of space (%20) in file names
HTH,
alfred,
Yw Chan ( Cai Lun e-Business ) wrote:
Hi,
I'm trying to write a CGI using perl for uploading multiple files, here's my part of codes.
== my @fax_files = map(symlink($query->tmpFileName($_), "/tmp/fax_$_") ? "/tmp/fax_$_" : (), $query->upload("files")); ===
I guess on IE, the browser returns back the whole path including C:\Documents and Setting....etc. However, the space breaks the list of filename that's in /tmp/fax_$_....
It is working in Firefox and what I see in Firefox is the path C:\Documents and Setting... etc has been removed and only the filename back to the server. That's my guess.
See if any experienced guy can tell me how I should handle this in IE actually.
Thanks a lot, CHAN
--
Perl - "... making the easy jobs easy,
without making the hard jobs impossible."
'The Camel', 3ed
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>