The CreatorCon Call for Content is officially open! Get started here.

I am getting one error when i am migrating one instance to another instance

Sumanth16
Kilo Patron

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

2 REPLIES 2

Jon Barnes
Kilo Sage

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?

Sumanth16
Kilo Patron

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