[Zope3-Users] z3c.form image upload widget

Martin Aspeli optilude+lists at gmail.com
Fri Mar 6 07:49:39 EST 2009

Roger Ineichen wrote:

> I think everything should be there for a simple file upload.
> The z3c.form doesn't have enhanced upload features.
> One way to implement an object replacement whould be to
> ad an addditional field (bool) in the object schema
> and depneding on that input replace the file in the
> EditForm.applyChanges method.
> If this replace-me field is a part of the archetype file,
> then a new widget whould be the right thing.
> btw, the default z3c.form widget returns the bytes data
> as widget value in applyChanges based on the converters
> convertion. Probably an archtype file widget should return
> an archetype? But this depends on the type of schema field
> which is used.

I'm not actually using Archetypes, I just want something with equivalent 

At the end of the day, I want to store a blob and be able to download it 


Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book

More information about the Zope3-users mailing list