Unable to Attach .sta File Type Despite Updating glide.attachment.extensions

phu2
Tera Contributor

Hi Community,

I'm trying to enable support for uploading .sta file attachments in our ServiceNow instance, but I'm running into an issue.


What I’ve Done So Far:

  • I updated the system property glide.attachment.extensions to:
    pdf,docx,xlsx,jpg,png,sta
  • I verified there are no extra spaces or line breaks.
  • I cleared the cache using /cache.do.
  • I confirmed that glide.attachment.blocked_types is either empty or does not include sta.
  • I tested uploading a .sta file to an Incident record, but I still get the error:

    "sample_report.sta has a prohibited file extension."

  • I also checked for any Business Rules or Client Scripts that might block file types, but didn’t find anything relevant.

Question:

Is there any other configuration or hidden restriction that could be preventing .sta files from being uploaded? Has anyone successfully enabled support for custom file types like .sta?

Any help or guidance would be greatly appreciated!

Thanks in advance!

7 REPLIES 7

J Siva
Tera Sage

Hi @phu2 
Disable the MIME type validation amd see if it works.
Steps:

This setting can also be adjusted directly in the sys_properties record for this property:

  • Property name: glide.security.file.mime_type.validation

  • Stored as: A true/false value

  • To disable validation, set the property to false

Regards,
Siva

phu2
Tera Contributor

Hello @J Siva,

I changed the property "glide.security.file.mime_type.validation" to false and clear cache and it still not working.

@phu2 Try to zip the file and upload it into your instance.