Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Error: file type not permitted or mime type does not match the file content?

astanley
Tera Contributor

Hello I am getting the following error when trying to upload an excel file:

find_real_file.png

The field:

found in System Properties > Security is left blank meaning all file types are permitted. The file type that pulled this error code was an .xls file type "Microsoft Excel 97-2002 Worksheet" at 17,034 KB. Another excel sheet of this same file type (.xls) at 4,506 KB was able to be uploaded with no issues. As a workaround, this excel sheet at 17,034 KB was converted to a zip to be uploaded (as per the servicenow KB article suggests: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0718011). Is there another workaround for this issue? Also what is causing this issue for this excel file if other excel files are able to be uploaded?

 

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

@astanley 

Adding to my previous note here, there is another way mentioned by ServiceNow to handle this is by setting the below property to FALSE

Property Name : glide.security.file.mime_type.validation -- Set this to False

Property URL

https://instance.service-now.com/nav_to.do?uri=sys_properties.do?sys_id=fa55aa66a5380110c0a0e1db2cdc95b2


Replace "instance' with your instance name.

 

HI Article Reference: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0998558

 

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

View solution in original post

3 REPLIES 3

shloke04
Kilo Patron

@astanley 

There is a very good article from ServiceNow on this issue. There might be multiple cause for this and a solution for each of them has been provided.

Please refer the HI article below which I think should get you to a solution.

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

shloke04
Kilo Patron

@astanley 

Adding to my previous note here, there is another way mentioned by ServiceNow to handle this is by setting the below property to FALSE

Property Name : glide.security.file.mime_type.validation -- Set this to False

Property URL

https://instance.service-now.com/nav_to.do?uri=sys_properties.do?sys_id=fa55aa66a5380110c0a0e1db2cdc95b2


Replace "instance' with your instance name.

 

HI Article Reference: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0998558

 

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

I have a question on this. I have turned this option off but still continue to get the error for a DLL file I am trying to upload to the MID Server JAR Files. I have even checked to make sure that dll is added to the list of allowed extensions to upload.