On Thu, 18 Nov 1999, John S. Evans wrote:

> I've been attempting to write a perl module that handles POSTs of type
> multipart/form-data, and have been having a rough time.
> 
> I'm using Apache::Request to process the request.  I have dumped the
> content-type of the incoming request, and verified that it's
> "multipart/form-data".  I can use param() to get the parameters, but I can't
> seem to use upload() to access the blocks directly.
> 
> I've included the code from my test handler below.  Basically it attempts to
> access a large parameter MIME block two ways - using param() and using
> upload().  The param() version works fine, but the upload() version can't
> find the block.
> 
> Any clues?  The only thing that I can think of is that for this test case,
> the MIME type of the "message" block is text/plain (it's in a TEXTAREA
> field, for testing purposes).  Is it possible that Apache::Request will not
> allow me to process "normal" form fields with upload()?

does the libapreq-x.xx/eg/perl/file_upload.pl script work for you?

Reply via email to