Attaching large files works despite setting Attachment Library Repository File Limit Size
search cancel

Attaching large files works despite setting Attachment Library Repository File Limit Size

book

Article ID: 102403

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

Even if the File Limit Size is set at 50MB, it allows uploading a file much higher than 50MB in file size. Why is this permitted?

Environment

Release:  17.x

Resolution

SDM enforces the File Size Limit on the compressed file and not the uncompressed version of it.

For example, if a file test.txt of size 60MB is being uploaded, compressed it might just be 1MB in size.  So SDM would allow you to upload the file.  This is working as designed.
 

Additional Information

SDM uses gzip algorithms to compress files.

Example:  The following test article files are about 30 MB each.

Figure 1:

Despite setting the repository file size limit to 5000 KB or 4.88 MB, the above files still attach:

Figure 2:

Figure 3:

Looking through the dir listing for the repository folder, we see that the files compressed down to 367 KB

Figure 4:

If one sets the file size limit to something like 300 KB, the attachment upload attempt will fail, as seen in file test-article-4.log, which has identical content to test-article-2.log and test-article-3.log per the above dir listing screenshot (see Figure 1) and would compress in the same manner.

Figure 5: