Re: [Zope] What's limiting my file uploads?

2005-12-30 Thread Dieter Maurer
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  ''
>  contents  
>
>  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
___
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 )


[Zope] What's limiting my file uploads?

2005-12-29 Thread Kirk Strauser
I have a very simple form on my site:

  
  
  Username
  Password
  File
  
  
  

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  ''
  contents  

  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 )