#16: Attachments Quota and Upload file size limit
- Contents
Add configuration option to set a global ploneboard quota limit in order to control zope database and therefore disk space growth.
- Proposed by
- Pete <peteredhair@gmail.com>
- Proposal type
- Architecture
- Assigned to release
- State
- draft
Motivation
Forums and Boards are usually one of the most active active spaces of a website.
Conversation and debate occur on a daily basis and usually documents are shared in the middle of a conversation and specially images (it is said that a picture/image is worth a thousand words).
Many times threads have several dozens or hundreds of messages, which if we consider that 5% of them has attachments (I'm being conservative and truly think this is a very moderate percentage) we can see where this leads in terms of uncontrolled database growth and disk space usage.
This proposal is for the implementation of a simple mechanism to control disk space and zope database growth using Ploneboard forums.
Proposal
One specifying the maximum size all attachments can take up in Ploneboard (everything, all forums), eventually have a mail alert sent to the site administrator when the usage percentage exceeds x%.
There are two options for the second one:
The most usefull one would be a table with with maybe 3 columns and where you'd add lines specifying type in the first column (type could be image, file,...., by file extension) the second column would be to specify the file extension if that was the type selected in the first column, and the third column to specify the maximum size.
While writing this occurred me that the types not specified would not be accepted adding another control to what type of content can be added as attachment.
If adding file size limit by file type is too dificult or complicated to implement then a single max. upload file size would limit all attachments, not so usefull but still a better than no control mechanism att all.
Implementation
- Implement Attachments Quota and Upload file size limit.
- Add configuration option to set a global ploneboard quota limit in order to control zope database and therefore disk space growth.
- Add configuration option to limit the upload file size. This option can be global (max. size for each upload file) or a more useful setting to specify max. size for each file type/extension.
- File type could be specified by extension (ex: .jpg = 60 Kb, .mpg=2 Mb, .pdf = 1 Mb, .zip = 500 Kb) or "plone type" (ex: image = 60 Kb, file = 2Mb,...)
- Suggest using a table format with a add button to specify file type/extension limits.
+1 kind of