Re: [mp2] can't locate object method "upload" via package "Apache::RequestRec"

[prev] [thread] [next] [Date index for 2004/11/07]

From: Carl Brewer
Subject: Re: [mp2] can't locate object method "upload" via package "Apache::RequestRec"
Date: 01:00 on 07 Nov 2004
Tom Schindl wrote:
> Carl Brewer wrote:
> 
>>
>>
>> sub get_uploaded_image {
>>     my ($name, $max_size, $r) = @_;
>>
>>     use Apache::Upload;
>>
> my $req = Apache::Request->new($r);
> my $upload = $req->upload($name);

I've got that in my subroutine and it works, but I'm concerned
that I'm dipping into the buckets too much?  Is it safe to
call on $r more than once per form submission?  I'm
already runnign the new request() in a subroutine I call
before I call the Upload one.

thanks again,

Carl

        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: [mp2] can't locate object method "upload" via package "Apache::RequestRec"
Carl Brewer 01:00 on 07 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52