[Zope] IOERROR Uploading a file

Richard Moon richard@dcs.co.uk
Thu, 15 Mar 2001 10:38:10 +0000


Anyone had this ?

I'm getting an IOERROR Errno 5 Input/output error when uploading a file to 
my zope site. The file is handled by an external method

def abcfile_read(self,REQUEST):

    # following line reads each line from uploaded code

    file=REQUEST.form['abcfile']


and the error is occurring at the file=REQUEST.form['abcfile'] line

Now this works fine on my development machine and it _did_ work fine at my 
hosts but now it doesn't (after updating the site and the external methods 
- but AFAIK not changing the file upload area). I did 're-edit' the 
external method on the management interface.

Is it permissions ?

Any clues where to start looking would be greatly appreciated.


the form which is used for the input looks like
<form ENCTYPE="multipart/form-data" method="post">

  Abc file <input type="FILE" name="abcfile">

Here's the traceback
<!--
Traceback (innermost last):
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/ZPublisher/Publish.py, line 
222, in publish_module
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/ZPublisher/Publish.py, line 
187, in publish
   File /home/sites/site7/users/tunedb/2-2-2/lib/python/Zope/__init__.py, 
line 221, in zpublisher_exception_hook
     (Object: Traversable)
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/ZPublisher/Publish.py, line 
171, in publish
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/ZPublisher/mapply.py, line 
160, in mapply
     (Object: AddAbcFileLogic.html)
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/ZPublisher/Publish.py, line 
112, in call_object
     (Object: AddAbcFileLogic.html)
   File /home/sites/site7/users/tunedb/2-2-2/lib/python/OFS/DTMLMethod.py, 
line 172, in __call__
     (Object: AddAbcFileLogic.html)
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/DocumentTemplate/DT_String.py, 
line 528, in __call__
     (Object: AddAbcFileLogic.html)
   File /home/sites/site7/users/tunedb/2-2-2/lib/python/OFS/DTMLMethod.py, 
line 168, in __call__
     (Object: AddAbcFileResults.html)
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/DocumentTemplate/DT_String.py, 
line 528, in __call__
     (Object: AddAbcFileResults.html)
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/DocumentTemplate/DT_In.py, 
line 633, in renderwob
     (Object: abcfile_read(REQUEST))
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/DocumentTemplate/DT_Util.py, 
line 337, in eval
     (Object: abcfile_read(REQUEST))
     (Info: REQUEST)
   File &lt;string&gt;, line 0, in ?
   File 
/home/sites/site7/users/tunedb/2-2-2/lib/python/Products/ExternalMethod/ExternalMethod.py, 
line 270, in __call__
     (Object: abcfile_read)
   File /home/sites/site7/users/tunedb/2-2-2/Extensions/zope_extra.py, line 
28, in abcfile_read
     (Object: Traversable)
IOError: (see above)

Richard Moon
richard@dcs.co.uk