How to resolve MIME type issue after adding the extension under glide.attachment.extensions property?

ias
Tera Contributor

I have recently added the file extensions (cbl, cob, wsdl, ccp, cpy, raml) under glide.attachment.extensions property to enable user add those files in the ServiceNow as a valid attachment. However, after adding them the file extensions cbl, cob, wsdl can be attached but ccp, cpy, raml cannot be attached and getting following error

File type not permitted or mime type does not match the file content

I tried to add them under "glide.security.mime_type.aliasset" property using the existing entries in it but it did not help and possibly the entries used is not applicable to the new file extensions.

Please help to resolve the error

8 REPLIES 8

Jaspal Singh
Mega Patron
Mega Patron

Hi,

 

You may check link once.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Joe DeStefano2
Tera Expert

Was the problem with the spaces between you extensions?  There should be no spaces.  Example (cbl,cob,wsdl,ccp,cpy,raml)

BRodge
Giga Contributor

Uncheck this block is the answer I found.  System Properties > Security

find_real_file.png

This post was helpful and it solved an issue that I had with a new file extension being uploaded. The extension was added but I still got the error message and this post solved it.

However, disabling this property is not recommended by ServiceNow, and I found this KB-article to solve the issue and still having mime types enabled.

Therefore I would strongly suggest adding the mime types as described in this post since disabling this property will effect the hardening of your instance.

find_real_file.png

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0820753

Kind regards