I'm trying to debug a perl script on MacOS Server 10.4.9. I'm using CGI.pm to perform file uploads, but I'm not getting any data from the file. I suspect I may be looking at an apache configuration error, but I just don't know my way around this stuff well enough to try it down.
Has anybody out there run into this problem before?
Here's a code snippet:
use CGI
my $q = new CGI;
...
my $file = $q->param( "file" );
my $fh = $q->upload( $file );
my $buffer;
my $data = "";
while (read($fh, $buffer, 16384)) {
$data .= $buffer;
}
No data ever gets loaded.