xorl has asked for the wisdom of the Perl Monks concerning the following question:
I know there are about 10 million messages on perlmonks
about uploading a file, but I haven't come across one that
addresses this issue. I'm basically using the script in
the OReiley book CGI Programming. The problem is when
someone inputs just the directory instead of a file the
browser seems to hang. I've set CGI::MAX_POST to a low
value. But that doesn't seem to help. I thought I could
check for illegal characters in the file name, but it
doesn't solve the problem.
Can someone please point me in the right direction.
Thanks!
Bad news I'm afraid. If you read the CGI.pm docs under "Using the File Upload Feature" you will
see that browser hangs under Netscape are a known issue when a directory is set as the upload.