z3c.form widget for adding multiple files
Project description
Introduction
plone.formwidget.multifile is a z3c.form-widget based on jQuery uploadify plugin, which uses flash for uploading.
Using flash makes it possible to select multiple files at once in the file selection dialog provided by the browser / operating system. After selecting the files the flash plugin will upload each file by once and the files are then stored in a draft (plone.app.drafts). When submitting the form the converter will get the files from the drafts storage.
Usage
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())
Limitations
Since the flash plugin submits the files it’s not possible to use it with HTTP basic authentication. Currently the widget passes the __ac cookie to the flash plugin for authentication.
Changelog
1.0a1 (2011-09-13)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for plone.formwidget.multifile-1.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8fd93a088717cfcf38721ac6b012feb549c680440d205b74f93a72358e3aba |
|
MD5 | a1f487afe61dd67f7f310e25783b9999 |
|
BLAKE2b-256 | 5311dd64e446e130c7deb1095310ba42f90dce880e53b498f541aab6c5ad843e |