Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »


<< Exclusions <<

Introduction and usage

As an administrator it may be desirable to blacklist certain attachment files based on their file size or name/content type. A common use case for attachment blacklisting is images contained within email signatures, these images are often icon sized so as an administrator you could blacklist all image files below a certain file size to filter these attachments from created issues. Attachment blacklisting can be configured via JEMHC administration or at a project level via project settings when a user is a project administrator.

Attachment blacklisting configuration can be accessed by pressing Blacklisting in the JEMHC navigation bar followed by Blacklist Attachment by content type, size and file name. By default no blacklisting rules are created so you will be presented with an empty list of rules.

Create an attachment size blacklisting rule

To create a new attachment blacklisting rule press the Create button, this will trigger a popup window where you can input rule configuration.

Attachment Content TypesA list of MIME content types to be blacklisted. A super type can also be chosen such as "image" to block all image/ content types.
File Size Range (bytes)A file size range (in bytes) of files to be blacklisted, can be used in combination with other configuration options within the rule.
File NamesA comma separated list of regular expressions used to match against file names destined to be blacklisted.
ReasonAn optional reason that can be defined for the blacklisting rule for future reference.
Project KeyThe project that the rule will be scoped to, by default rules are scoped globally meaning they apply to all projects. Selecting a specific project will scope the rule to that project only.

Blacklist all images with a file size of less than 10Kb

All images with a file size of less than 10Kb can be blacklisted by setting the content type to the super type of image, the file size range can then be defined as between 0 and 10000 bytes (10Kb)

Blacklist all files based on file name

In this example I have decided that I would like to blacklist all attachments that contain the word "keyword" in the filename, I can achieve this by providing a regular expression for the filename and not selecting any other configuration options.


  • No labels