Ticket #20246 (new Bug)
Opened 14 months ago
Schema.List NamedBlobFile field value(s) lost on resubmit
Reported by: | chrism_tm | Owned by: | davisagli |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Dexterity | Version: | 4.4 |
Keywords: | Cc: |
Description
I've created a dexterity content type. One of the fields is a schema.List type with a value_type of NamedBlobFile. e.g.
from zope.schema import List from plone.namedfile.field import NamedBlobFile ... files = List( title=u'Files', description=u'', value_type=NamedBlobFile(), ) ...
When initially setting the value for this field, this works as expected.
However, when you edit the object, any files previously uploaded are dropped when you submit the form, and consequently the form validation fails (as the list item(s) are empty).
Note: See
TracTickets for help on using
tickets.