I am getting one error when i am migrating one instance to another instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2018 03:18 PM
Hi ,
I am getting this error while i am uploading the file into instance ,but the jpg and png are in allowed list .Can you please help anyone for this one.
Error:
Security restricted: MIME type mismatch for file: xxx.jpg. Expected type:image/jpeg, Actual type: image/png
Security restricted: File type is not allowed or does not match the content for file xxx.jpg
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2018 03:22 PM
it seems to indicate that your file is a .jpg, but it is in the format of a .png. have you tried renaming your file to .png and uploading it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2018 01:47 PM
The problem was resolved .
Solution:
glide.security.file.mime_type.validation system property is set to true by default in instance. When you set it to false then it will allow those type of attachments into instance.
Description about property from ServiceNow docs:
glide.security.file.mime_type.validation:Must be set to activate MIME type checking for uploads (all version Eureka and up). Enables (Yes) or disables (No) mime type validation for file attachments. File extensions configured via glide.attachment.extensions are checked for MIME type during upload.
Please mark as correct answer if it is correct,it will helpful in future