Dear all,

I've got a really simple little Zope application that allows staff here
to upload documents into a folder of their choice without seeing the
Zope management screens. There's a form that looks like this:

  <form action="admin_addfiles" method="POST" enctype="multipart/form-data">
  <input type="file" name="file" size="40">

The admin_addfiles method then actually creates the file and applies
some properties to it (that also come from the form):

  <dtml-call expr="manage_addFile(filename, file=file, title=filetitle)">
  <dtml-let newfile="_.getitem(filename)">
  <dtml-call expr="newfile.manage_addProperty('author', fileauthor, 'string')">
  <dtml-call expr="newfile.manage_addProperty('maintainer', filemaintainer, 'string')">
  <dtml-call expr="newfile.manage_addProperty('description', filedescription, 

It all works fine until I try to upload a file that's greater than about
128 kb. When I try that I get the following error:

Error Type: AttributeError
Error Value: abort_sub

Traceback (innermost last):
  File /usr/local/zope/lib/python/ZPublisher/, line 222, in publish_module
  File /usr/local/zope/lib/python/ZPublisher/, line 187, in publish
  File /usr/local/zope/lib/python/Zope/, line 221, in 
    (Object: Traversable)
  File /usr/local/zope/lib/python/ZPublisher/, line 175, in publish
  File /usr/local/zope/lib/python/Zope/, line 235, in commit
  File /usr/local/zope/lib/python/ZODB/, line 290, in commit
AttributeError: (see above)

I don't see this if I add a similar-sized file using the Zope management
screens. Anyone done anything similar and seen this?


Dr Ian Sealy
Internet Development
Institute for Learning and Research Technology
University of Bristol

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to