- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2020 01:12 PM
How can I increase the size the limit of an attachment per file for a service request on service portal. I think it is allowing up to 24MB per file. No error or warning message is shown. I tried updating below things but no luck. Any thoughts?
- Updated widget: "sp-ticket-attachments" from 1024*1024*24 to 1024*1024*1024. Din't work.
- System property - com.glide.attachment.max_size shows 1024 but no luck.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 09:43 AM
Was able to achieve it.
Most of the articles say 'SP Ticket Attachments' but the correct widget to update 1024*1024*1024 is 'SP Catalog Item'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2020 01:14 PM
Hi,
In the form widget client controller script Update the line sizeLimit variable
From var sizeLimit = 1024 * 1024 * 24; // 24MB
To var sizeLimit = 1024 * 1024 * 1024; // 1GB
Kindly mark it correct and helpful.
Thanks,
Priyanka

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2020 01:19 PM
Article that you have read & made changes states the same. I am not sure if modifying at all other places on the portal i.e. all widgets where limit is set as 24 would make it work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2020 01:31 PM
I think your code should work as per below KBs:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0692617
https://hi.service-now.com/kb_view.do?sysparm_article=KB0718101
Also i checked multiple OOB widgets which has the same code:
function setupAttachmentHandler(){
$scope.attachmentHandler = new nowAttachmentHandler(appendSuccess, appendError);
$timeout(function() {
var sizeLimit = 1024 * 1024 * 24; // 24MB
$scope.attachmentHandler.setParams($scope.data.table, $scope.data.f._attachmentGUID, sizeLimit);
})
}
setupAttachmentHandler();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 09:43 AM
Was able to achieve it.
Most of the articles say 'SP Ticket Attachments' but the correct widget to update 1024*1024*1024 is 'SP Catalog Item'.