Subject: | Problem uploading files (v. 3.04) |
System: Apache 1.3.29 + Perl 5.8.3 + CGI.pm 3.04 on Debian-based Linux.
Problem: Uploading file on server results in empty filehandler => zero-length files.
I use:
"
use CGI qw(:standard);
no strict;
$q = new CGI;
$fh = $q->upload($from); # $from field name in form
open (OUTFILE,">".$to) || print "Couldn't open to write '$to': $!";
binmode(OUTFILE);
while (<$fh>) {
print OUTFILE $_;
}
close(OUTFILE);
"
"multipart/form-data" exists in <form>.
No errors/warnings neither in Apache nor in Perl.
On CGI.pm 2.47 this works.
But unfortunately I can't roll back to this version. :((