[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    reading multipart forms
From:       jesse () vm ! com (Jesse Erlbaum)
Date:       1999-05-31 20:55:02
[Download RAW message or body]

Maybe a silly question --

I'm trying to read the contents of a POST which contains a CGI-uploaded part,
via multipart/form-data.  For standard POST requests, I am used to the
content() method, as documented in the Apache POD:

       $r->content
           The $r->content method will return the entity body
           read from the client, but only if the request content
           type is application/x-www-form-urlencoded.  When
           called in a scalar context, the entire string is
           returned.  When called in a list context, a list of
           parsed key => value pairs are returned.  *NOTE*: you
           can only ask for this once, as the entire body is read
           from the client.

The POD seems to suggest that only the old-style "x-www-form-urlencoded" data,
and not "multipart" are supported.  How can I deal with multipart forms via
mod_perl?

Thanx!

-Jesse-



--

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  Jesse Erlbaum ........... mailto:jesse@vm.com
  Lead Programmer/IT Director .. Vanguard Media
  data: 212.242.7685...voice: 212.242.5317 x115
+-+-+-+-+-+-+- http://www.vm.com/ +-+-+-+-+-+-+-+

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic