I have a very simple form on my site: <table summary="Test form"> <form action ="receive997" enctype="multipart/form-data" method="post"> <tr><td><b>Username</b></td><td><input type="text" name="username" size="16"></td></tr> <tr><td><b>Password</b></td><td><input type="text" name="password" size="16"></td></tr> <tr><td><b>File</b></td><td><input type="file" name="contents" size="30" accept="*/*"></td></tr> <tr><td></td><td><input type="submit" value="Upload"></td></tr> </form> </table>
It posts to a trivial Python script: request = container.REQUEST return request For testing purposes, the contents of "username" and "password" are six bytes long. As long as the file specified in "contents" is short (7843 bytes or less), the "form section of the formatted request object looks like: form username 'something' password '<password obscured>' contents <ZPublisher.HTTPRequest.FileUpload instance at 0x91307ec> cookies ... As soon as the length of the submission crosses the 7843 byte barrier, though, it becomes empty: form cookies ... I can't figure out what's going on. In zope.conf, "cgi-maxlen" is unset (and therefore should default to zero). "http-header-max-length" defaults to 8192, which is pretty close to 7843 plus a little overhead, but the problem remained even after I increased that value to 32768. Any idea why Zope seems to be limiting my file upload size to this script to just under 8KB? -- Kirk Strauser The Day Companies _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )