Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Right now this package provides 2 widgets, FileField and ImageField. These widgets support file uploading with server side caching. That means that if some other field in the form fails validation, the user wont have to upload the file again. Instead they get the information of the file they included or a thumbnail of the image if it’s an ImageField. An option to remove the file from the form is given too.

The ImageField has a thumbnail preview and allows size validation and automatic resizing when dimensions get past certain values (this isn’t enabled by default).

If Lightbox is installed (optional), the full size images will be displayed with it (non popup image viewer). Also an animation removing the file attached to the form will be shown if Scriptculous is installed (optional). The server side caching is done using the TemporaryFile class from the official Python tempfile module. It’s a secure way to store files on a platform independent way. The files are cleared when they are not used anymore.

The widgets need a controller that will be the file server for the download links and images previews. You can import the controllers from file_fields.controllers (PicServer and FileServer) and specify the url on the widget constructors (file_server_url, image_server_url)

The easiest and recommended way is enabling the extension your dev.cfg, prod.cfg or app.cfg adding:

file_field_server.on = True

Metadata

Release files for FileFields 0.1a6.dev-r1868

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for FileFields 0.1a6.dev-r1868
File Size Uploaded Provenance
FileFields-0.1a6.dev-r1868.tar.gz 8.9 kB Without provenance Details

Release files / FileFields-0.1a6.dev-r1868.tar.gz

Download URL FileFields-0.1a6.dev-r1868.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f84d48b509ebf55bbc70c266967798e8d80aa486bf30a5c8816526ca9fba6310
BLAKE2b-256 checksum
How to use checksums
ab57b7d80a944e8d0a92096ba627f4ac4ba8caa123afec5fbad70624711dcdb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for FileFields 0.1a6.dev-r1868

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page