Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 39759 invoked from network); 7 Sep 2005 12:56:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2005 12:56:28 -0000 Received: (qmail 14332 invoked by uid 500); 7 Sep 2005 12:56:27 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 14305 invoked by uid 500); 7 Sep 2005 12:56:27 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 14292 invoked by uid 99); 7 Sep 2005 12:56:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2005 05:56:27 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=PRIORITY_NO_NAME,RCVD_BY_IP,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gcaa-apreq-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2005 05:56:38 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ECzRJ-00081W-Sl for apreq-dev@httpd.apache.org; Wed, 07 Sep 2005 14:54:09 +0200 Received: from 82.101.66.107 ([82.101.66.107]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Sep 2005 14:54:09 +0200 Received: from ananiev by 82.101.66.107 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Sep 2005 14:54:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: apreq-dev@httpd.apache.org From: "Nikolay Ananiev" Subject: Re: Problem with $req->upload() Date: Wed, 7 Sep 2005 15:55:35 +0200 Organization: * Lines: 38 Message-ID: References: <87irxef8tc.fsf@gemini.sunstarsys.com> <87ek82f87p.fsf@gemini.sunstarsys.com> Reply-To: "Nikolay Ananiev" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 82.101.66.107 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N "Nikolay Ananiev" wrote in message news:dfm7i4$5bq$1@sea.gmane.org... > "Joe Schaefer" wrote in message > news:87ek82f87p.fsf@gemini.sunstarsys.com... > > Joe Schaefer writes: > > > > > "Nikolay Ananiev" 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