z3c.form widget for adding multiple files
plone.formwidget.multifile is a z3c.form-widget which lets users upload multiple files, either at once, or in batches using repeated form submissions.
Using the widget is quiet easy:
>>> from plone.directives import form as directivesform >>> from plone.formwidget.multifile import MultiFileFieldWidget >>> from plone.namedfile.field import NamedFile >>> from zope import schema >>> from zope.interface import Interface >>> >>> class IMySchema(Interface): ... """My schema interface""" ... ... directivesform.widget(files=MultiFileFieldWidget) ... files = schema.List(title=u'Files', ... value_type=NamedFile())
Updated pt_BR translation.
Changed the UI so now there’s a link to “add files” instead of an standard input[type=file] HTML element (which still exists, but is hidden). Users were complaining that the old UI was confusing since the textbox of the input[type=file] element was always empty. [rafaelbco]
Fix minor bugs on the new non-flash implementation. [rafaelbco]
Removed dependency on plone.app.drafts. [rafaelbco]
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for plone.formwidget.multifile-1.0a4.zip