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
Kirk Strauser wrote:
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?
In your mail there's a method="post". You're sure you're actually executing this same code? Otherwise no clue, I'd do a network trace to know what's really posted. Florent -- Florent Guillaume, Nuxeo (Paris, France) Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com
On Thursday 29 December 2005 17:59, Florent Guillaume wrote:
In your mail there's a method="post". You're sure you're actually executing this same code?
Absolutely positive.
Otherwise no clue, I'd do a network trace to know what's really posted.
Will do. I was hoping for an easy answer first. :-) -- Kirk Strauser The Day Companies
Kirk Strauser wrote at 2005-12-29 11:03 -0600:
... large uploads fail ... 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:
Such a problem was discussed a few months ago on the mailing list. I think, the poster finally found the solution. Searching the archive might help you. -- Dieter
participants (3)
-
Dieter Maurer -
Florent Guillaume -
Kirk Strauser