[Zope] manage_addFile won't work

Dieter Maurer dieter@handshake.de
Wed, 3 Apr 2002 23:46:53 +0200


Mark Spencer writes:
 > The following python code works when I upload a local file to my local Zope
 > server, but gives a "resource not found" error when uploading any local file
 > to a Zope Server across the internet:
 > 
 > context.manage_addFile(id, file=new_file_object, title=title,
 > precondition="", content_type="")
 > (If  I change "file=new_file_object" to "new_file_object" there is the same
 > problem)
Sounds unbelievable...

  You looked at the HTML source of the error page?
  Often Zope puts valuable information (e.g. what exactly was not found)
  in HTML comments.
  It is also helpful to run Zope in debug mode ("-D" option)
  to analyse such behaviour.


Dieter