cgi and multipart/form-data?

Chris Curvey ccurvey at earthlink.net
Tue Mar 29 14:11:51 EST 2005


I have a form like this:

<form method="post" enctype="multipart/form-data">
     <input type="file" name="myFile">
     <input type="text" name="foo">
     <input type="submit">
</form>

When I submit this form to my Python script using the CGI module, I seem 
to get the "myFile" variable, but I don't seem to the "foo" variable.

Interestingly, if I take out the "myFile" variable (or specify a much 
smaller file) I do get the value for "foo".

The files that I'm trying to handle are 400-500Kb in size...is there 
something I need to do (cgi.maxlen?) to let cgi handle big files?



More information about the Python-list mailing list