Problema with MIME types attachments: filename.xlsx.p7m

Michele Conz1
Giga Expert

Hello all.

We should attach to KB articles attachment of xlsx files digitally signed (p7m), just like "example_file.xlsx.p7m".

Both extension are permitted in system property "glide.attachment.extensions" and we want to mantain "glide.security.file.mime_type.validation" set to true.

"File type not permitted or mime type does not match the file content" is the only answer we get from the system...

How can we do?

 

1 ACCEPTED SOLUTION

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello,

 You can workaround most cases of this issue by (1) mapping the file extension to its expected mime type by updating or creating the system property: 'glide.security.mime_type.extension_mapping', and if that isn't sufficient proceeding to (2) forcing the system to accept different file types for that extension by updating or creating the system property: 'glide.security.mime_type.aliasset'

 

 

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

View solution in original post

2 REPLIES 2

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello,

 You can workaround most cases of this issue by (1) mapping the file extension to its expected mime type by updating or creating the system property: 'glide.security.mime_type.extension_mapping', and if that isn't sufficient proceeding to (2) forcing the system to accept different file types for that extension by updating or creating the system property: 'glide.security.mime_type.aliasset'

 

 

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

shloke04
Kilo Patron

Hi,

Please refer to below HI Article which talks on how to resolve the issue you are getting:

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

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke