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

mpmacconnell
Tera Guru

When trying to upload DLL files to the MID Server JAR Files section I am getting the following error:

find_real_file.png

I have already go to security and added the file extension. I have even check the option to turn off the MIME checking.

 

find_real_file.png

 

Anyone have any ideas?

1 ACCEPTED SOLUTION

I finally found it. Apparently part of the hardening someone enabled the glide.attachment.blacklisted.extensions system property and DLL was listed there. Removed it from there and it let me upload.

View solution in original post

4 REPLIES 4

Allen Andreas
Administrator
Administrator

Hi,

Please review this support article, in full (to include the bottom portion), to see if it helps with your issue: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718011

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Geoff_T
Mega Sage

I encountered this problem and found the response (by Henrik Jutterström) in this thread very helpful:

https://community.servicenow.com/community?id=community_question&sys_id=513bf592db8f17c48e7c2926ca9619cd

Updating this property - glide.security.mime_type.extension_mapping

Means you shouldn't have to disable the MIME checking property you mention above.

 

I finally found it. Apparently part of the hardening someone enabled the glide.attachment.blacklisted.extensions system property and DLL was listed there. Removed it from there and it let me upload.

along with the above property , check glide.attachment.blacklisted.types , need to remove the mime type file in this property as well.