Tags:
create new tag
, view all tags

Question

I see how you can set file attachement max size globally... but can you do it by page? So if you have one group that you want to limit to small document size attachments, you can set that limit on there TWiki pages... but for another group set the limit much higher for file sharing of much larger scripts?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RHEL4U4
Web server: Apache 2.0
Perl version: I have 42 Perl RPMs loaded, no idea which one you want...
Client OS: Windows XP Pro SP2 & RHEL*u*
Web Browser: FireFox 2.0 & IE6.0/7.0
Categories: Plugins

-- JeffreyLovretich - 30 Aug 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

You can set this in any page:

   * Set ATTACHFILESIZELIMIT = 50
This will redefine the max file attachment size for that page, provided that ATTACHFILESIZELIMIT is not set in a FINALPREFERENCES setting at a higher level (web-level or site-level.) Note that if you remove it from the FINALPREFERENCES you basically allow anyone to define their own file attachment limit (if they read the docs.)

You can hide the ATTACHFILESIZELIMIT in html comments:

<!--
   * Set ATTACHFILESIZELIMIT = 50
-->
or you can set this in the page preferences (see "more topic actions" screen.)

It is safer to set ATTACHFILESIZELIMIT on a web-level (WebPreferences), and prevent the lower level to redefine it (add to FINALPREFERENCES in WebPreferences.

-- PeterThoeny - 30 Aug 2007

Thank you Mr. Thoeny!

-- JeffreyLovretich - 31 Aug 2007

Call me Peter smile

-- PeterThoeny - 01 Sep 2007

 
Change status to:
Topic revision: r4 - 2007-09-01 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.