Restrict some file types to upload in serviceportal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2018 08:12 PM
Hi,
We are trying to restrict file types to upload in service portal.in security property is there for attachment types.but it is for successive file types. but we want to restrict like black listing.
Example:client want to provide some file types(.exe,.pdf,.doc) except this remaining file types should accept to upload.
Please help me to solve this issue.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2018 09:24 PM
The glide.attachment.extensions property restricts the file extensions that users can upload as attachments.
Docs:
https://docs.servicenow.com/bundle/helsinki-platform-administration/page/administer/form-administration/task/t_RestrictingFileExtensions.html
Procedure
- Navigate to System Properties > Security.
- In the Attachment limits and behavior section, locate the List of file extensions (comma-separated) that can be attached to documents via the attachment dialogproperty.
- Enter the file extensions and click Save.
If no extensions are specified, then all extensions are allowed. However, if any extensions are specified, all unlisted extensions are restricted. Listed extensions should not include the dot (.) prefix or spaces after commas. For example, enter xls,xlsx,doc,docx.
Vab 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2018 09:53 PM
vab.13 thank you for your reply.
But my requirement is reverse.in this property if i provide pdf,xls .total system will accept only pdf and xls. Remaining extensions are i cannot upload.
But my requirement is, if i provide pdf,xls. system should accept all file extensions except pdf and xls .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2018 10:03 PM
Please check if this helps:
https://community.servicenow.com/community?id=community_question&sys_id=318b4761db9cdbc01dcaf3231f96198b&view_source=searchResult
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2018 06:10 PM
Hi Shishir,
Thank you for ur reply,it will show message in page always.
Actually we restricted uploading blacklisted extended files by Business Rule but after failure of file upload. we cannot send restricted msg from Business rule to widget.
If we can send msg from business rule to widget my problem will solve.