This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


This package provides a simple widget for file upload and edit. It is registered for zope.schema.interfaces.IBytes. The original file widget allows only upload and thus it is usable only with z3c.form.AddForm.

It can be used together with archetypes’ FileField, however the z3c.form’s applyChanges cannot handle filename and content_type properly, so please note that you have to tweak it yourself.

The aim was to override the default behavior without creating a new field as plone.namedfile does.


Add the package into you buildout’s egg section or your package’s and rerun buildout.

In your form reassign the widget:

from collective.z3cform.filewidget import FileFieldWidget

class YourForm(form.EditForm):
    fields = field.Fields(IYourForm)
    fields['file'].widgetFactory[INPUT_MODE] = FileFieldWidget

The value returned from the widget (convertor) is either raw data of the uploaded file or a collective.z3cform.filewidget.NOCHANGE indicating that the file has not been changed.

The filename and headers are stored within the widget instance itself:

filename = self.widgets['file'].filename
headers = self.widgets['file'].headers


0.1 (unreleased)

  • Initial release
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (20.9 kB) Copy SHA256 Checksum SHA256 Source Jan 31, 2010

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting