where $filename corresponds to your $upfile. I suspect that you might have junk in the filename that you need to strip out.(my $name = $filename) =~ s/^.*(\/|\\)//; open(UPLOAD, ">$UPLOADDIR/$name") or die "$name: $!";; while ( <$filename> ) { s/\r//g if $stripCRs; print UPLOAD $_; } close(UPLOAD);
In reply to Re: CGI to upload file can't access filehandle
by dws
in thread CGI to upload file can't access filehandle
by macaroni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |