[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] Handling multipart/form-data CGIs (file uploads) with MacPerl




Howdy, folks. I'm wondering just how to handle multipart/form-data
forms with MacPerl and the CGI module. In particular, I'd like to know
how to deal with file uploads.

I've got a simple little perl program that I use to test my forms; all
it does is dump the returned successful controls' name and value pairs
to the user via an on-the-fly HTML doc--it also returns the ENV data. It
works perfectly well with regular forms, but when I specify that the
enctype is to be multipart/form-data (and include a file via the
<input type="file" ...> element), MacPerl returns an error like

    # CGI open of .:CGItemp10001: Invalid argument

This is MacPerl 5.2.0_r4 and the CGI module that comes included.

Any ideas?

Thanks,

Chris

-----------------------------------------------------------------------------

Christian J. Schaller                            Applications Systems Analyst
Lunar and Planetary Laboratory                 schaller@spuds.lpl.arizona.edu
The University of Arizona               http://www.lpl.arizona.edu/~schaller/
Tucson, AZ 85721-0077                                            520/621-7200



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org