httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boysenberry Payne <boysenbe...@humaniteque.com>
Subject Re: How to use Apache2::Upload
Date Fri, 11 Nov 2005 22:39:53 GMT
Also, are there equivalents to:

$CGI::DISABLE_UPLOADS
and
$CGI::POST_MAX
???

Thanks,
Boysenberry

boysenberrys.com | habitatlife.com | selfgnosis.com

On Nov 11, 2005, at 3:56 PM, Boysenberry Payne wrote:

> In the Apache2::Upload doc it gives the following example:
>
> use Apache2::Upload;
> $req = Apache2::Request->new($r);
> $upload = $req->upload("foo");
>
> If I'm using this inside of a mod_perl handler do I need to do
> $req = Apache2::Request->new($r);
> where $r is my request handle?
> Or am I getting confused?
>
> So would the following be correct?
>
> sub handler {
>
> 	my $r = shift;
> 	my $req = Apache2::Request->new( $r );
> 	my $upload = $req->upload( "foo" );
> 	my $fh = $upload->fh;
> }
>
> In the above would $fh be appropriate to use with Net::FTP->put( $fh )?
>
> Thanks,
> Boysenberry
>
> boysenberrys.com | habitatlife.com | selfgnosis.com

Mime
View raw message