MultFile Help

Partecs Participatory Technologies

http://www.partecs.com

info@partecs.com

MultiFile is a Plone Archetype Field which allows to upload multiple files.

A demo type is included. Set INSTALL_DEMO_TYPES = False in config.py to disable it.

Usage:

  1. Install as usual in your Products folder
  2. Install in your Plone Site with the Quickinstaller tool
  3. In your custom Archetype, add :

    from Products.MultiFile import MultiFileField

    from Products.MultiFile import MultiFileWidget

  4. Use like a regular field/widget in your Type's Schema. There is an included example.

Full usage example :

     MultiFileField('file',
               primary=True,
               languageIndependent=True,
               storage = AnnotationStorage(migrate=True),
               widget = MultiFileWidget(
                         description = "Select the file to be added by clicking the 'Browse' button.",
                         description_msgid = "help_file",
                         label= "File Some Text",
                         label_msgid = "label_file",
                         i18n_domain = "plone",
                         show_content_type = False,)),