perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Burcham" <...@burcham.com>
Subject Re: Problem with modperl2/apache2/apreq2 upload
Date Thu, 08 Apr 2004 03:06:54 GMT
> That's certainly supposed to work, assuming 'somefilename' is
> the name of the upload widget in your HTML form. Can you post 
> a backtrace for the segfault?

Sure... umm... how do I do that?  :)

I'm still pretty new to perl.  

> 
> That is correct.  In apache1 the uploads formed a linked list
> internally, but that's no longer true in apreq2. In apreq2 
> $req->upload follows the same interface pattern as $req->param.

How do I get to just the upload items?  Or do I test via $upload-
>info/type?

thanks a lot,

ken.


On 7 Apr 2004 at 22:33, Joe Schaefer wrote:

> "Ken Burcham" <ken@burcham.com> writes:
> 
> >   I've been reading and trying things all day to no avail which 
> > usually means I'm doing something stupid.  I have a perl apache 
> > module running under Apache 2.0.48/Mod_perl 
> > 1.99_13/libapreq2.02_02 and I'm trying to take a file upload.  
> > 
> >   I'm getting a segfault whenever I call $req->upload with a 
> > parameter:
> > 
> > my $upload = $req->upload('somefilename');
> 
> That's certainly supposed to work, assuming 'somefilename' is
> the name of the upload widget in your HTML form. Can you post 
> a backtrace for the segfault?
> 
> > I can, however, call: my @uploads = $req->upload; and it returns 
> > to me an array of parm names.  In apache1, a call to ->upload 
> > would return to me just upload objects whereas in apache2 it is 
> > apparently returning every param name on the form.  Is that 
> > right?
> 
> That is correct.  In apache1 the uploads formed a linked list
> internally, but that's no longer true in apreq2. In apreq2 
> $req->upload follows the same interface pattern as $req->param.
> 
> -- 
> Joe Schaefer
> 
> 
> -- 
> 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


-- 
Ken Burcham
Ken Burcham Consulting, Inc.
http://www.capemaystation.com

Mime
View raw message