in reply to multipart/form under mod_perl

I would recommend that you take a look at the Apache::Request module - it has a similar interface to that of the CGI module but works directly with the Apache API.

You will get some code like this :

use Apache::Request; sub handler { my ( $request ) = @_; my $apr = Apache::Request->new($request); my $upload = $apr->upload; my $fh = $upload->fh; while(<$fh>) { # do something with file contents } }

/J\

Replies are listed 'Best First'.
Re: Re: multipart/form under mod_perl
by philou (Beadle) on Feb 04, 2002 at 10:18 UTC
    Thanks man,
    I thought the Apache::Request was bundled with mod_perl, but the fact is that I was actually using the basic request object provided by mod_perl.
    That Apache::Request seems to have all the features I have ever dreamed of (some of them I had to write them by myself).
    philou