Attachment Checker for Confluence
Breadcrumbs

How to set File Size Limits for Different User Groups


Table of Contents

/*<![CDATA[*/ div.rbtoc1762509501586 {padding: 0px;} div.rbtoc1762509501586 ul {list-style: disc;margin-left: 0px;} div.rbtoc1762509501586 li {margin-left: 0px;padding-left: 0px;} /*]]>*/ Introduction How to change the setting Editing File Size Limit Enable/Disable the file size checking Change the group associated for the Group 1 Add a new File Size Limit Rule for the group Edit a File Size Limit Rule for the group Delete a File Size Limit Rule for the group How it works


Introduction

It is possible to enforce different permissions for selected groups of users. This is useful for scenarios like

  • Increase the upload limits for Confluence admins to handle exception scenarios

  • Only the media team users can upload videos files which are large in nature

  • Restrict maximum size of images (png/jpg/gif) to 100kb, but allow PDF files to be up to 10mb

  • Limit customers to upload image files only whereas staff can upload pdf and office documents as well

  • Preventing abuse where users upload large zip files onto Confluence as their backup drive

File Size Limit Configuration.png

How to change the setting

  1. Log in as Confluence administrator

  2. Go to Confluence Administration > Attachment Checker > Configuration
    Attachment Checker configuration.png

  3. Click on the Edit Settings button toEnable/Disable checking of file size limit based on groupsChange the Error Message if the file size limit has exceeded

  4. To edit the file size limit, click on the Edit File Size Limit button

Editing File Size Limit

Each File Size Limit rule consist of the following components

Attribute

Description

Extension

The file extension applicable for this rule

Maximum Size

The number that specify the maximum size of the file. It can only accept integer values. If you want to block upload of the type, you can use 0

Unit Size

KB or MB


A possible File Size Limit rule will be members of the staff-users group in Confluence can upload mp4 file type with file size up to 100 MB


The following operations are available in this screen

Enable/Disable the file size checking
  1. Click on the pen icon 
    Change mode 01.png

  2. Select the option in the radio button
    change mode 02.png

  3. Click on the Tick icon to save the change

Change the group associated for the Group 1

The default group associated with Group 1 and Group 2 are confluence-administrators and confluence-users respectively. It is possible to switch to other groups.

  1. Click on the pen icon beside the group name
    change group 01.png

  2. Type to search for groups with matching name
    change group 02.png

  3. Select the group
    change group 04.png

  4. Click on the Tick icon to save the change
    change group 03.png

Add a new File Size Limit Rule for the group
  1. Enter the values at the top row of the group
    add rule 01.png

  2. Click on the Add button on the first row of the section
    add rule 02.png

Edit a File Size Limit Rule for the group
  1. Find the rule to be edited
    edit file size limit rule 01.png

  2. Mouse over the row to be edited. A pen icon will appear
    edit file size limit rule 02.png

  3. Click on the pen icon to toggle edit mode
    edit file size limit rule 03.png

  4. Update the value

  5. Click on the Update button to save

Delete a File Size Limit Rule for the group
  1. Click on the Delete button at the right side of the row
    delete file size limit rule 01.png

How it works

  • The default setting for Group 1 is confluence-administrators group

  • The default setting for Group 2 is confluence-users group

  • When a file is uploaded, it will determine the user performing the upload belongs to which group. The sequence of checking is in the workflow diagram below

File Size Limit checking workflow.png