in reply to Re: CGI File upload, resulting files 0 bytes long
in thread CGI File upload, resulting files 0 bytes long

And while we're giving general advice, always check to see if your file gets opened in the first place!

open (OUTFILE,">$file") or die "Couldn't open '$file': $!\n";