This question about Configuration: Answered

How to limit the whole size of a topic

I've discovered some users uploading attachments greater than 10Mb in some topics under our Foswiki instalation. After reading http://foswiki.org/Support/Question283 and http://foswiki.org/Support/Question202 , I have set ATTACHFILESIZELIMIT = 10000 into System/DefaultPreferences topic and now each attachment is limited to 10Mb.

After this change, our users are starting to upload multiple files into the same topic with a maximum of 10Mb each. Obviously due to the restriction above. I found some topics with 10 attachments with 10Mb each, which makes a sum of +100Mb.

How can I limit the whole size that a topic can have as a maximum (including body + attachments)?


AFAIK this is not possible, but might be doable with a plugin - probably something that hooks into the beforeSaveHandler, checks how large the topic might be and then denies the save if necessary.

-- PaulHarvey - 08 Sep 2010

Building on AttachmentListPlugin you could add up all current attachment sizes and set the ATTACHFILESIZELIMIT.

-- ArthurClemens - 08 Sep 2010

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.0.9
Status Answered
Topic revision: r3 - 08 Sep 2010, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy