perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cfaust-dougot" <>
Subject Apache2::Upload and End of file found error Part 2
Date Wed, 06 Dec 2006 19:28:02 GMT
I'm still trying to figure out what to do about this upload problem.. I've figured out that
somehow creating a new CGI object is causing the problem but I have no idea how or what to
Below is a bare bone test upload script, if you comment out the "my $CGI = new CGI();" in
the sub "init_global_vals" then the update works fine, if its uncommented then the server
error of "End of file found" happens.
I have no idea how one relates to the other, any ideas?


From: cfaust-dougot []
Sent: Tue 12/5/2006 1:28 PM
Subject: Apache2::Upload and End of file found error

I'm trying to use Apache2::Upload as shown in the examples and the only thing I get is "End
of file found" in the error log.
I've found quite a few messages on the subject, but I'm not using Mason and I'm using libapreq2.0.7.1.
I've tried the fh and slurp methods and both are the same.
Code I've been playing with
 my $req = Apache2::Request->new($r);
 my $upload = $req->upload('new_image');
 my $size = $upload->size;
 my $uploaded_file = $upload->fh;
 #$upload->link($uploaded_photo_name) or
    #  die sprintf "link from '%s' failed: $!", $upload->tempname;
Server Info
Apache/2.0.55 (Ubuntu) PHP/5.1.6 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.8 configured

View raw message