Raymond Wan <[EMAIL PROTECTED]> 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