$query->upload($file)
should be
$query->upload('upfile')
From perldoc CGI (my emphasis)
To be safe, use the upload() function (new in version 2.47). When called with the name of an upload field, upload() returns a filehandle, or undef if the parameter is not a valid filehandle.
In reply to Re: Yet another CGI Upload problem - not like the others!
by adrianh
in thread Yet another CGI Upload problem - not like the others!
by stuayres
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |