- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2022 03:54 AM
Hi All,
I am having a attachment variable in a catalog item. The maximum limit of the attachment should be 20 mb.
Can anyone please let me now how to achieve this?
Thanks,
Vinu
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2022 04:04 AM
Hi
please see https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/... for the answer.
- You should specify only an integer value for the following:
- The max_file_size variable attribute
- The glide.sc.variable.attachment.default_max_size system property (catalog-level). The default value is 20.
- If the max_file_size variable attribute is not specified, the glide.sc.variable.attachment.default_max_size system property value is considered as the upper limit for the attachment file size.
- Irrespective of the file size allowed in the variable, the attachment file size cannot exceed the size specified in com.glide.attachment.max_size system property, which is applicable for attachments across Now Platform.
That means, the system checks in that order:
- Value specified at variable attribute max_file_size
- Value specified at system property glide.sc.variable.attachment.default_max_size
- Value specified at system property com.glide.attachment.max_size
Let me know if you have any further questions.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2022 04:02 AM
Hi Vinu
maximum allowed attachment size can only be set for the complete instance (see https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718101) but not indivdual for an attachment variable.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-01-2022 04:04 AM
Hi
please see https://docs.servicenow.com/bundle/rome-servicenow-platform/page/product/service-catalog-management/... for the answer.
- You should specify only an integer value for the following:
- The max_file_size variable attribute
- The glide.sc.variable.attachment.default_max_size system property (catalog-level). The default value is 20.
- If the max_file_size variable attribute is not specified, the glide.sc.variable.attachment.default_max_size system property value is considered as the upper limit for the attachment file size.
- Irrespective of the file size allowed in the variable, the attachment file size cannot exceed the size specified in com.glide.attachment.max_size system property, which is applicable for attachments across Now Platform.
That means, the system checks in that order:
- Value specified at variable attribute max_file_size
- Value specified at system property glide.sc.variable.attachment.default_max_size
- Value specified at system property com.glide.attachment.max_size
Let me know if you have any further questions.
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2022 10:32 AM
As a follow-up question, does anyone know how to limit the attachment variable attribute of max_file_size to less than 1mb? Since it's in mb's decimal values don't seem to work.
I'd like to limit to 100kb which would be 0.1 or max_file_size=0.1 but this doesn't seem to work (anything under 1 doesn't seem to work.
Any ideas?