New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
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 and , 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
Version Foswiki 1.0.9
Status Answered
Topic revision: r3 - 08 Sep 2010, ArthurClemens - This page was cached on 19 Aug 2018 - 20:57.

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