4 May
2001
4 May
'01
7:32 a.m.
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."