[Zope] Uploading images - no image!
Etienne Labuschagne
etiennel@geospace.co.za
Fri, 4 May 2001 09:32:10 +0200
Hi there
The Python Method (not external Python Method!) below must upload an image
after being given the id, title and filename (on the client computer). This
should work the same way as the management interface based image uploading.
Somehow, this function causes the image to be created, but is seems to
contain no image data (you cannot view the image). What am I doing wrong?
(self is passed as the only parameter. id, title and file are set in the
calling form)
id = self.REQUEST['id']
title = self.REQUEST['title']
file = self.REQUEST['file']
self.manage_addProduct['OFSP'].manage_addImage(id,file,title)
return "Your image is uploaded."