Skip to content

RedTurtle/collective.limitfilesizepanel

Repository files navigation

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