[Zope] file upload from python script

Dieter Maurer dieter@handshake.de
Tue, 4 Sep 2001 23:49:45 +0200 (CEST)


Horst Wald writes:
 > I'm trying to do a file upload from inside a python script that takes the 
 > file's path and the target folder object as args.
 > 
 > When I try manage_addFile or manage_upload, the content of the new Zope-file 
 > is the path of the file I wanted to upload and not the file itself.
This means, you should pass the FileUpload object and
not the filename :-)


Dieter