"Nikolay Ananiev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Joe Schaefer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Joe Schaefer <[EMAIL PROTECTED]> writes: > > > > > "Nikolay Ananiev" <[EMAIL PROTECTED]> 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. > > > > Ah, oops. It is available after all: APR::Request::upload > > is currently provided by the APR::Request::Param module. > > Go figure. > > Thanks, when I load APR::Request::Param the error is gone, but there is > another when I try to use: > my $req = APR::Request::Apache2->handle($r); > my $f = $req->upload('file'); > print $f->filename; > print $f->size; > $f->link('/some/path'); > > There's no such methods. > [Wed Sep 07 11:20:40 2005] [error] Can't locate > auto/APR/Request/Param/link.al in @INC (@INC contains: c:/Doink/lib > c:/Doink/cgi-bin C:/Doink/Perl/lib C:/Doink/Perl/site/lib . > C:/Doink/Apache2) at c:/Doink/cgi-bin/TT.pm line 40\n
I found the problem. I have to use $f->upload_filename, $f->upload_size and $f->upload_link