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"
<tr><td><b>Password</b></td><td><input type="text" name="password"
<tr><td><b>File</b></td><td><input type="file" name="contents" size="30"
<tr><td></td><td><input type="submit" value="Upload"></td></tr>
It posts to a trivial Python script:
request = container.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
password '<password obscured>'
contents <ZPublisher.HTTPRequest.FileUpload instance at 0x91307ec>
As soon as the length of the submission crosses the 7843 byte barrier,
though, it becomes empty:
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?
The Day Companies
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -