if i upload an image in the ZOBD as a file i have the precondition if i do the same in the localfs folder no. Do you know why?
It seems LocalFs will always recognise the file uploaded as an image...

Zope will set the uploaded file type unless you do it explicity before you save the object:
folder.manage_addFile(id=thisId, file=filedata, title=afile, content_type=contentType)

set contentType to what you want.



Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to