Attachment Policy |
The Attachment Policy contains all system wide settings for Attachments which determine Attachment behavior. Unless an Attachment Element specifically identifies a Repository and a node, this Attachment Policy is examined across all nodes until a rule is found to match the charateristics of file being attached. These rules can qualify where a file will be stored depending on classification, type, size, department, and file name. The system uses a scoring mechanism to match your file to a storage repository. All rules are evaluated and scored. Each time a match is found it improves its score and then the system takes the one with the highest score. If both have the same score then it uses the order of your rules and chooses the first on the list. If no matches, it defaults to the network repository and sapphire custom node.
Property Name | Description | ||||||||||||||||||||||||
Attachment Classes and Rules | Specify criteria for how, when and where to store Attachment files. Define rules with different criteria to control which repository is used to store different types of files.
For example, if the file is a video, store it on the local network and do not zip the file. If the file is a word document, store it in an AWS Repository and encrypt the file.
For information regarding this functionality, see Attachments → Attachment Types → File. |
||||||||||||||||||||||||
Phrases for Rich Text | Allows Phrases to be
used in "Rich Text" Attachment Types.
|
||||||||||||||||||||||||
Maximum Upload Size | Maximum size of an uploaded file (in Mb). If this is not
set, the servlet initialization parameters are used. If those are not set,
this defaults to 10 Mb. Set to -1 for unlimited size.
This can be used to selectively restrict file size on a per-Element basis. For example, suppose an SDI Maintenance page contains two attachment Elements: one for SOPs, and another for Instrument files. You could then set the maximum size for SOPs to 1 Mb, and the size of the Instrument files to 10 Mb assuming each leads to a different node of this attachment policy. |
||||||||||||||||||||||||
Thumbnails | Determines if (or how) thumbnails are displayed:
|
||||||||||||||||||||||||
Local Caching |
"No" prevents any local server from caching files. The default behavior is "Yes". Disabling caching here will override the setting you have in the Repositories that use this policy node. When "Yes", each time an Attachment is viewed or downloaded it is cached locally on the application server. If the Attachment is modified, the cache is cleared. If the file is compressed, decompression is performed on the cache, keeping the optimized version available for use. Caching is particularly useful for repositories like AWS and database where there is an overhead to download the file from the external source. However, if the Network file repository is local to the server (stored on the same box), then caching is not recommended as you are getting nothing from it unless the files are zipped. However, if the network store is over a slower connection, then caching may be used to improve performance. The general recommendation is if it is a local file system then disable caching. If not, enable caching. |
||||||||||||||||||||||||
User Role For Attachment Revisioning | Allows users who have this role to promote/copy an older version of an attachment to the next higher and current version of the attachment. If no role is identified, all users can make older versions of an attachment the current version. See Attachment Revisions | ||||||||||||||||||||||||
Admin Role For Attachment Revisioning | Role required for clearing a lock that was placed on an attachment by another user. If no role is identified then no role is required thus allowing all users to clear other user's locks. See Attachment Revisions | ||||||||||||||||||||||||
Max Hash Size | In MB. Defaults to 100 (megabytes). Any file larger than this will not be hashed. Set to 0 to stop hashing for all attachments using this policy node. Set to -1 to hash all files regardless of size. |