Thanks a lot. It worked. I had to change the form, adding fields to get the title and file. I also needed to change change the default form tag adding: ENCTYPE="multipart/form-data" method="post"
Ha, the type error comes from the file methods. Actually what happens is, that the interface MZPhoto_addForm and MZPhoto_add only want to get the id. But a File and an Image class needs to get a title and also an uploaded file. Look for the addForm when you add a File somewhere in Zope.
So you need to extent MZPhoto_addForm with a title and file form field. As this is all put into the REQUEST object the MZPhoto_add need not to be changed. (Have not tried it).
I can not say if this is supposed to work right, that the automatically generated forms should be complete for the object which should be added.
HTH
__Janko
****************************************************** Oscar Picasso picasso@videotron.ca ******************************************************