[Zope] Uploading images - no image!

Dieter Maurer dieter@handshake.de
Fri, 4 May 2001 20:50:59 +0200 (CEST)


Etienne  Labuschagne writes:
 > The Python Method (not external Python Method!) below must upload an image
"Python Method" has been superceded by "Python Script".

Fewer and fewer people will know about "Python Method".

You may consider upgrading to "Python Script" as an appropriate
time in the future.

 > ....
 > self.manage_addProduct['OFSP'].manage_addImage(id,file,title)
 > ... create image but without (wrong?) date ...

Apparently, your "file" does not have the correct type.

This may happen, if the "enctype" attribute if your
"form" is not "multipart/form-data" (as someone else
already told you).

Note, that it must be "multipart/form-data" and *NOT*
the content type of your image!


Dieter