httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject Re: Problem with $req->upload()
Date Tue, 06 Sep 2005 16:41:03 GMT
"Nikolay Ananiev" <ananiev@thegdb.com> writes:

> Hello,
> when I try to use
>
> my $req = APR::Request::Apache2->handle($r);
> my $f = $req->upload('file');

Hmm, so far there's no upload() method in APR::Request.
Try this instead (requires 2.06-dev I think):

    use APR::Request::Param;
    my ($f) = grep {$_->upload}
        $req->body->param_class("APR::Request::Param")->get("file");

-- 
Joe Schaefer


Mime
View raw message