perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+apa...@sunstarsys.com>
Subject Re: "End of file found" error for file uploading
Date Sun, 10 Jun 2007 13:54:04 GMT
Raymond Wan <rwan@kuicr.kyoto-u.ac.jp> writes:

> I enable apreq2 and then tried this:
>
> my $contents = '';
> my $req = Apache2::Request -> new ($r);
> my $upload = $req->upload ('foo');
> my $size = $upload -> slurp($contents);
>
> with a form using the "post" method and an enctype of
> "multipart/form-data". 
>
> In my browser, I am getting a single message: "End of file found".
> That is, the single line.

What's happening is that $req->upload calls $req->body, and that is
die'ing with the "End of file found" error.  What browser are you using,
and what version of apreq?

(The problem you're seeing is either a bug in apreq's mfd parser, 
or in what your browser is actually emitting).

-- 
Joe Schaefer

Mime
View raw message