Skip to main content

This is an helper package that setup a RedTurtle’s Plone site ready to work with Volto.

python version ci Coverage downloads License

Introduction

This product allows you to set a max siza validation for file and image fields in content-types.

How to use it

Just add the product to the buildout and install it in the site you want to use.

A new “Limit file size settings” option will be added in the control panel, where you can change the File and Image attachments.

No users will be able to upload files that exceed the limit. Also in TinyMCE text editor.

Settings

Advanced use

While default general purpose file and image settings can be OK for most common scenarios, you can also define custom settings for specific content types: just fill the “Settings for other content types and fields” section.

Type's settings

Configuration in that section wins over global configuration.

Validator bypass

If some users need to bypass the validation and upload some larger files, there is a new permission “collective.limitfilesizepanel: Bypass limit size” that allows to do this.

You only need to set this permission to some roles, and they’ll have no upload limits.

Compatibility

This products runs on Python3 and has been tested on:

  • Plone 5.2

For older versions, please refer to 2.x branch/tags

Credits

Developed with the support of:

All of them supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

3.0.3 (2023-09-27)

  • Fix check in validators if product is not installed. [cekk]

3.0.2 (2023-05-02)

  • Raise custom ValidationError to have a 400 on restapi calls. [cekk]

3.0.1 (2023-05-02)

  • Raise ValueError instead Invalid for restapi calls. [cekk]

3.0.0 (2023-04-27)

  • Python3 support. [cekk]

  • Drop usage of persistent fields in registry. Now we use collective.z3cform.jsonwidget. [cekk]

  • Change validator to work also with restapi calls. [cekk]

2.1.2 (2018-07-17)

  • Fix release [cekk]

2.1.1 (2018-07-17)

  • Fix permission for upload view [eikichi18]

2.1.0 (2018-05-09)

  • Fix validators for Dexterity fields. Now works well with Files and images [cekk]

  • Add support for Tinymce validation also for Plone 5 [cekk]

2.0.3 (2018-01-30)

  • Don’t break validation for view with no spcific context. [bsuttor]

2.0.2 (2017-09-15)

  • Fix brown bag release [cekk]

2.0.1 (2017-09-14)

  • Don’t break validation if the product isn’t installed. If not installed, shouldn’t do nothing. [cekk]

  • Fix patched__call__ if the product isn’t istalled. [arsenico13]

2.0.0 (2017-05-04)

  • Version 1.3 don’t uninstall cleanly [keul]

  • Now validates also files and images created in TinyMCE [cekk]

  • Dexterity support [cekk]

1.3 (2015-07-06)

  • Added type+field configuration [keul]

  • Pyflakes cleanup [keul]

1.2 (2013-08-19)

  • Add German translations. [jone]

  • Ensure consistency of megabyte symbols to be MB. [davidjb]

1.1.2 (2013-03-26)

  • run rolemap configurations when upgrading from older versions [keul]

1.1.1 (2013-03-26)

  • fixed pypi classifiers [keul]

1.1 (2013-03-26)

  • Added a proper uninstall step [keul]

  • Now based on collective.monkeypatcher [keul]

  • i18n refactoring [keul]

  • Do not try to automatically validate file size for already existings attachments.

    This provent to get validation error when editing file after size limit has been changed [keul]

  • Added new permission “collective.limitfilesizepanel: Manage limit file size settings”. Users with this permission can bypass size validation [cekk]

1.0 (Unreleased)

  • Initial release

Release files for collective.limitfilesizepanel 3.0.3

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

Source distribution (sdist)

Source distribution for collective.limitfilesizepanel 3.0.3
File Size Uploaded
collective.limitfilesizepanel-3.0.3.tar.gz 83.4 kB Details

Release files / collective.limitfilesizepanel-3.0.3.tar.gz

Download URL collective.limitfilesizepanel-3.0.3.tar.gz
Size 83.4 kB
Tags Source
SHA-256 checksum
How to use checksums
82d6bfa69eedeaa8dfc5fe1bd294fd12af34ae319c1221a2eaf75bf45773efa7
BLAKE2b-256 checksum
How to use checksums
708c9ac520581bcf1f001cd62d50b0bdb2bf58801572e9c62dc60998ba7520dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

3.0.3 This release

1 release file

3.0.2

1 release file

3.0.1

1 release file

3.0.0

1 release file

2.1.2

1 release file

2.1.0

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.0

1 release file

1.3

1 release file

1.2

1 release file

1.1.2

1 release file

1.1.1

1 release file

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