content Types for all the attachments supports by servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2017 09:15 PM
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
- 12,924 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2017 09:21 PM
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:
- 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 dialog. Extensions should not include the dot (.) e.g. xls,xlsx,doc,docx. Leave blank to allow all extensions. property.
- 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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2017 09:30 PM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2017 09:33 PM
Hey Sneha,
An even more comprehensive list of content types can be found here -

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2017 09:35 PM
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