the code looks alright. but you didn't include the code that gave you the $data filehandle. be sure that $data was retrieved something like so:
my $data = $query->param("uploadfileTagname");
a common gotcha is opening the uploaded filehandle for read, then trying to write it back out. at least it "got" me....once :-)
In reply to Re: CGI File upload, resulting files 0 bytes long
by wardk
in thread CGI File upload, resulting files 0 bytes long
by Mandor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |