upload file using cgi on Win2k IIS

Ignacio Vazquez-Abrams ignacio at openservices.net
Wed Oct 10 22:17:53 CEST 2001

On Wed, 10 Oct 2001, Jason McWilliams wrote:

> I seem to be doing everything correctly to save a posted
> multipart/form-data file on IIS server.  Yet, I only
> seem to be able to save a small portion of the file, not
> the whole thing.
> The internet user has permission to the temp directory and
> I am not getting any errors.  It works properly with the
> same code on unix, so it must be a IIS thing?
> I have tried file.read file.value and also tried to just
> do one line at a time... file.readline .  I can get the
> file name fine using cgiobj.filename  ... etc.
> I get about 498 k as the file size on the uploaded file, never
> more and I am trying to upload a big file.  Maybe there is
> a post limit in IIS?  I know that you can set a GET limit.

What is the value of the hidden field named "MAX_FILE_SIZE" set to? Is there
one at all? If not, then don't expect your file input to work properly.

Ignacio Vazquez-Abrams  <ignacio at openservices.net>

More information about the Python-list mailing list