my $in = new CGI;
and see what it says.
Hope that helps,
Everyone if you want the fix to the cgi head over to http://www.websworks.com/cgi/fix
I set this up to help everyone..
Gossamer Threads if you need help debugging your cgi-scripts I have the perfect company. email me let me know!
Btw- it has nothing to do with the cgi.pm version! It should work either way!
Good luck and I hope everyone visits the page on how to fix it....
Around line 191 SHOULD be
var fileName = window.document.Upload.data.value.toLowerCase();
Around like 529 SHOULD be:
<input name=data type=file onBlur="serverFileName()"><br>
Now, it works
Apparently they never fixed the script at all. ARGH!
I've double checked that the one on the web is the latest version with the changes. It was an awful source control problem.
On your fix you still call the variable "file", so unless you changed:
($file_space, $result) = &upload ($dir, $in->param('data'), $filename, $disk_space);
($file_space, $result) = &upload ($dir, $in->param('file'), $filename, $disk_space);
in the script I'm not sure how that would fix the problem. Also, I'm not sure why you would have to rewrite the entire cgi script?