Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 97827 invoked from network); 30 Jul 2004 12:02:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Jul 2004 12:02:11 -0000 Received: (qmail 98606 invoked by uid 500); 30 Jul 2004 12:02:10 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 98567 invoked by uid 500); 30 Jul 2004 12:02:10 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 98553 invoked by uid 99); 30 Jul 2004 12:02:10 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.27.1) with SMTP; Fri, 30 Jul 2004 05:02:08 -0700 Received: (qmail 20945 invoked by uid 65534); 30 Jul 2004 12:02:06 -0000 Received: from dsl-213-023-233-124.arcor-ip.net (EHLO [213.23.233.124]) (213.23.233.124) by mail.gmx.net (mp025) with SMTP; 30 Jul 2004 14:02:06 +0200 X-Authenticated: #20142289 Message-ID: <410A38BD.7010207@gmx.de> Date: Fri, 30 Jul 2004 14:02:05 +0200 From: Markus Wichitill User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en, de MIME-Version: 1.0 To: "Keith C. Perry" CC: apreq-dev@httpd.apache.org Subject: Re: Problem use Apache::Upload References: <1091171298.4109f3e2f2210@webmail.vcsn.com> In-Reply-To: <1091171298.4109f3e2f2210@webmail.vcsn.com> X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Keith C. Perry wrote: > use Apache::Upload; > use strict; > > my $r=Apache->request; > my $req = Apache::Request->new($r); > my $upload = $req->upload(); > my $fname = $upload->filename(); > my $io = $upload->io(); > $r->print while <$io>; > > I get error like this for filename() in the server error log... > > [Fri Jul 30 02:25:54 2004] [error] Can't locate object method "filename" via > package "Apache::Upload::Table" at /www/local/upload.mpl line 18. If you want an Apache::Upload object, you need to pass a field name: my $upload = $req->upload('foo'); http://cvs.apache.org/~joes/libapreq2-2.04-dev/docs/html/group__apreq__xs__request.html#upload