content Types for all the attachments supports by servicenow

Sneha39
Mega Guru

Hi,

I need content Types for all the attachments supports by servicenow  

for eg .content Types for doc,docx,xls,xlsx,ppt,ppts,jpeg,png,pdf etc

For text files "plain/text"  

Thanks

5 REPLIES 5

Aakash Shah4
Tera Guru

Hi Sneha,



5 Restricting File Extensions

The glide.attachment.extensions property restricts the file extensions that are permissible to upload as attachments. Use this property to improve security by preventing users from uploading harmful files, such as viruses, as attachments. Additionally, this functionality can prevent the use of incompatible file types. For example, Internet Explorer does not support icons in .png format. Note that this property does not restrict files based on the actual file type, but only based on the extension.


To restrict file extensions for attachments:


  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 dialog. Extensions should not include the dot (.) e.g. xls,xlsx,doc,docx. Leave blank to allow all extensions. property.
  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.
    For more details click on the link
    Administering Attachments - ServiceNow Wiki

Sakshi14
Giga Expert

Hi Sneha,



The attachments allowed into servicenow are determined by the system property - glide.attachment.extensions - if this property is blank, that means all types of attachments are allowed in the system.



A list of common MIME types (content type header can be found here) -



Complete list of MIME types - HTTP | MDN



Hope this helps!


Hey Sneha,



An even more comprehensive list of content types can be found here -


zpage.mime.types.title


Shishir Srivast
Mega Sage

Please check if this helps.



docx: application/vnd.openxmlformats-officedocument.wordprocessingml.document


doc: application/msword


jpg: image/jpeg


png: image/png


xlsx: application/xlsx OR application/vnd.openxmlformats-officedocument.spreadsheetml.sheet


xls: application/vnd.ms-excel


pptx: application/vnd.openxmlformats-officedocument.presentationml.presentation


pdf: application/pdf