Restrict some file types to upload in serviceportal

anjaneyulumuvva
Kilo Expert

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.

5 REPLIES 5

vab_13
ServiceNow Employee
ServiceNow Employee

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

  1. Navigate to System Properties Security.
  2. 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.
  3. 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.
 
 
 
Mark your feedback( Like or Helpful or Correct) as per the impact of my response. Cheers!

Vab 🙂

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 .

Shishir Srivast
Mega Sage

Please check if this helps:

 

https://community.servicenow.com/community?id=community_question&sys_id=318b4761db9cdbc01dcaf3231f96198b&view_source=searchResult

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.