[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "End of file found" error for file uploading


Raymond Wan <suppressed> 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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.