Skip to main content

File field and widget with enhancements for zope3.

Project description

Introduction

A correctly working File widget and field for zope.

The standard FileWidget returns a string instead of an IFile instance, which means it will always fail schema validation in formlib.

In addition this widget will also extract the filename and Content-Type from the request.

Credits

Widget originally developed for Reflecto

Jarn, Wichert Akkerman, Martijn Pieters

Further enhancements

Laurence Rowe, Jens Klein

Changelog

Version 1.2

  • Don’t pretend we have a file if we don’t actually have one (e.g. this is an add form and validation failed) [optilude]

  • Fix IE bug - IE prepends the full local path to the filename [optilude]

Version 1.1

  • Add an image widget and field. [mj]

Version 1.0

  • Extract file and widget from reflecto [ldr]

  • Enhance input widget to have same functionality as Archetypes file widget. Create display widget and view on IPageForm to expose file downloads from forms. [ldr]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collective.namedfile-1.2.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file collective.namedfile-1.2.tar.gz.

File metadata

File hashes

Hashes for collective.namedfile-1.2.tar.gz
Algorithm Hash digest
SHA256 de5dc3f0219defe203077572e30475646645fbc906831e050483e3648c2af0d7
MD5 05c8bd218a5845f16014b84212d228b7
BLAKE2b-256 0cb30d8dc67fd919af56879ba555d672ad2214d53fc02240e990c6e346a6d923

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page