Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Prerequisite

Installation

Confluence Administration > Add-ons > Atlassian Marketplace > Find new add-ons

By Searching in Atlassian Marketplace

  1. Go to Find new add-ons.
  2. Search for Attachment Checker in the search field.
  3. Click Free trial or Buy now to install, configure and start using.
Confluence Administration > Add-ons > Atlassian Marketplace > Manage add-ons

By Upload

  1. Download the latest version from Marketplace.
  2. Go to Manage add-ons.
  3. Click on Upload add-on.
  4. Select the .jar file.
  5. Click Upload.
  6. The Attachment Checker should be installed.
  7. Click on Free trial or Buy now to configure and start using.

Configuration

Accessing the Configuration Page

Image Removed

Configuration Settings

The settings are organised into the following tabs:

  • File Type Blocking
  • Virus Scanning
  • Quota Checking

File Type Blocking

To block file types based on the configured whitelisting/blacklisting rules.

Image Removed

...

Field Name

...

Required

...

Default Value

...

Explanation

...

The list of extensions to be used for filtering.
For each of the extension listed, all of it's associated extension(s) will also be filtered automatically.

To allow all files, set Filter Mode to "Blacklist" and enter "," in list of extensions.

Image Removed

...

  • Whitelist (Only configured file types are allowed)
  • Blacklist (Only configured file types are blocked)

...

Virus Scanning

To scan all uploaded attachments for virus threats.

Image Removed

...

Field Name

...

Required

...

Default Value

...

Explanation

...

Select whether to enable the scanning of attachments:

  • Enable
  • Disable

...

Select whether to auto delete file if it is detected as a virus:

  • Enable
  • Disable

Quota Checking

To control the amount of attachments uploaded in each Space.
To set the attachment quota for each Space individually, click on Edit Space Quota button to go to the Quota Summary page.

Image Removed

...

Select whether to enable the quota checking:

  • Enable
  • Disable

...

Unlimited

...

Enter default quota (rounded up to 2 decimal place):

  • '0' for Unlimited

...

Select preferred unit to use:

  • MB
  • GB

...

Quota Summary

Note

This is only available from version 1.2.0 onwards.

Initial Setup

Image Removed

This is a one-time setup whereby you can select a preferred timing to calculate all the attachments in all Confluence Spaces.

Once you set the Scheduled Time, a daily job to do the calculation will be scheduled.

This must be completed before the Quota Check can be enabled.

...

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

...

  • 00
  • 15
  • 30
  • 45

...

  • AM
  • PM

...

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • Until all Spaces are calculated

...

  • 00
  • 15
  • 30
  • 45

...

  • AM
  • PM

For first time users, the Quota Check is disabled by default.

You will be redirected to the initial setup when you access the Quota Summary page.

For existing users, if Quota Check is enabled, you will not go through the initial setup.

If not all Spaces have completed the calculation, Attachment Checker will try to calculate on the run.

If you experience problems with the pagination, search or filter, you may wish to go through the initial setup step by clicking on Recalculate.

Scheduled Job

The job will start running at the specified start time and ends approximately around the specified end time.

If there are Spaces NOT calculated after the job stops, they will be calculated on the next job run.

Recalculate

Image Removed

This allows recalculation of the storage used should there be any discrepency.

By clicking Confirm:

  • You will be redirected to the Quota Summary Initial Setup.
  • Quota Check will be disabled, and CANNOT be enabled until the setup has completed.
  • If Quota Check is currently enabled, it will be re-enabled upon setup completion.

Image Removed

Configuring Quota

  1. Click on the pencil icon to edit.

  2. Make the necessary changes to the form.

  3. Click on the tick button to save or cross button to cancel.

If the attachment quota for a particular Space is not set, the default attachment quota will be used.

Image Removed

Pagination, Search and Filter

Note

This is only available from version 1.5.5 onwards.

The maximum number of Spaces shown on each page is 50. If your Confluence instance has more than 50 Spaces, there will be pagination.

The search is by Space Key or Space Name, and is case insensitive. If there are more than 50 matching Spaces, there will be pagination.

The filters are by:

  • Allocation
    • All
    • Customthe Space's storage allocated is not the default. 
    • Default – the Space's storage allocated follows the default.
  • Usage
    • All
    • Empty – the Space does not have any attachments.
    • Exceeded – the storage taken up by the attachments in the Space exceeds the Space's allocated storage.

Image RemovedThe settings are categorised into the following tabs:

Table of Contents
minLevel1
maxLevel6
include
outlinefalse
indent
styledefault
exclude
typelist
class
printabletrue

The configuration page can be accessed via the admin sidebar or Manage apps page:

...

File Type Blocking

Info

For more info on filtering, refer to Restrict attachments by file type

Settings

Description

Filter Mode

Filter mode for uploaded attachments:

  • Allowlist - Only configured file extensions are allowed

    Status
    titledefault

  • Denylist - Only configured file extensions are blocked

Extensions

List of comma delimited file extensions to be filtered.

Exceptions

Always allow password protected Microsoft Office files

  • Checked (Allow)

  • Unchecked (Block)

    Status
    titledefault

Always allow Microsoft Office files encrypted with sensitivity labels

  • Checked (Allow)

  • Unchecked (Block)

    Status
    titledefault

Always allow Table Spreadsheet Macro (Table Filter and Charts for Confluence) attachments

  • Checked (Allow)

  • Unchecked (Block)

    Status
    titledefault

Error Message

The error message to display when invalid files are being attached to the issue.

For example:

Warning

This file type is not allowed.

File Size Checking

Info

For more info on setting the file size limits, refer to Limit the file size for different user groups

Settings

Description

File Size Check

To check file size of uploaded attachment:

  • Enabled

  • Disabled

    Status
    titledefault

Error Message

The error message to display when file size exceeds the limit.

For example:

Warning

The file size has exceeded the maximum size limit.

Virus Scanning

Info

For more info, refer to Virus scanning of uploaded attachments

Settings

Description

Missing File Check

Add comment to alert user if the file is missing after they are uploaded:

  • Enabled

  • Disabled

    Status
    titledefault

Virus Scanning

Scan attachments for virus after they are uploaded:

  • Enabled

  • Disabled

    Status
    titledefault

Scanner Path

The full path to the command line scanner.

For example:

Code Block
/usr/bin/clamscan

Additional Options

The additional options for the command line scanner. Leave empty if not required.

Exception Handling

If file is infected

Check the checkbox to:

  • Delete file

  • Email Confluence Sysadmin Group

Any other errors

Check the checkbox to:

  • Delete file

  • Email Confluence Sysadmin Group

Confluence Sysadmin Group

The group to send an email on the details of the occurrence.

Actor

The user to add the virus alert comment.

Leave blank to set as Anonymous.

Quota Checking

Info

For more info on managing quota, refer to:

Settings

Description

Quota Check

To check quota when uploading attachments:

  • Enabled

  • Disabled

    Status
    titledefault

Default

The default quota (disk space) allocated for attachments in each space.

Error Message

The error message to display when uploaded file size exceeds the quota available.

For example:

Warning

Insufficient quota available.

Alert Threshold

The threshold to display the announcement banner. Enter 0 to disable the alert.

  • 90 %

    Status
    titledefault

Alert Message

The alert message to display in announcement banner when alert threshold is reached.

Note

This space has exceeded 90% of the disk quota. Please housekeep the attachments or inform the Confluence admin to increase the quota.

Permissions

Allow users to view space quota:

  • Enabled

    Status
    titledefault

  • Disabled

Attachment Logs

Info

For more info, refer to Attachment Logging and Download

Settings

Description

Attachment Logs

To log attachment downloads:

  • Enabled

  • Disabled

    Status
    titledefault

Group

The group to apply attachment logging. Leave blank to apply to all groups.