Validate file MIME type in AttachmentCreator web service
The glide.attachment.enforce_security_validation property determines whether Multipurpose internet Mail Extensions (MIME) files undergo validation.
Ensure that MIME-types are validated for attachments to prevent dangerous files from being uploaded on your instance using wrong file extensions.
Set the glide.attachment.enforce_security_validation system property to true. When set to true, files are uploaded with the correct file type extension.
More information
|
Attribute |
Description |
|---|---|
|
Configuration name |
glide.attachment.enforce_security_validation |
|
Configuration type |
System Properties (/sys_properties_list.do) |
|
Data type |
Boolean |
|
Recommended value |
true |
|
Default value |
true |
|
Fallback value |
true |
|
Category | |
|
Security risk |
|
|
Dependencies and prerequisites |
None |
|
References |
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types |
|
Functional impact |
Set this hardening setting to true to run mime-type and file extension validations on uploaded file attachments. No validations are run if this property is set to false. This property is set to true by default. |
--- title: Validate file MIME type in AttachmentCreator web service description: The glide.attachment.enforce\_security\_validation property determines whether Multipurpose internet Mail Extensions \(MIME\) files undergo validation. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/instance-security-hardening-settings/sc-validate-file-mime-type-in-attachmentcreator.html release: australia product: Instance Security Hardening Settings classification: instance-security-hardening-settings topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [File and resources, Hardening settings, Platform Security] --- # Validate file MIME type in AttachmentCreator web service The **glide.attachment.enforce\_security\_validation** property determines whether Multipurpose internet Mail Extensions \(MIME\) files undergo validation. Ensure that MIME-types are validated for attachments to prevent dangerous files from being uploaded on your instance using wrong file extensions. Set the **glide.attachment.enforce\_security\_validation** system property to **true**. When set to **true**, files are uploaded with the correct file type extension. ## More information <table id="table_ajc_b43_3kb"><thead><tr><th> Attribute </th><th> Description </th></tr></thead><tbody><tr><td> Configuration name </td><td> **glide.attachment.enforce\_security\_validation** </td></tr><tr><td> Configuration type </td><td> System Properties \(/sys\_properties\_list.do\) </td></tr><tr><td> Data type </td><td> Boolean </td></tr><tr><td> Recommended value </td><td> true </td></tr><tr><td> Default value </td><td> true </td></tr><tr><td> Fallback value </td><td> true </td></tr><tr><td> Category </td><td> [File and resources](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-file-resources.md) </td></tr><tr><td> Security risk </td><td> - Severity score: 6.7 - CVSS score: Medium - Security risk details: If the property is set to false, there’s no validation for MIME files during uploads. This could enable malicious files to be disguised by changing their file extension. </td></tr><tr><td> Dependencies and prerequisites </td><td> None </td></tr><tr><td> References </td><td> [https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics\_of\_HTTP/MIME\_types/Common\_types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) </td></tr><tr><td> Functional impact </td><td> Set this hardening setting to true to run mime-type and file extension validations on uploaded file attachments. No validations are run if this property is set to false. This property is set to true by default. </td></tr></tbody> </table>**Parent Topic:**[File and resources](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-file-resources.md)
| title | Validate file MIME type in AttachmentCreator web service |
| description | The glide.attachment.enforce\_security\_validation property determines whether Multipurpose internet Mail Extensions \(MIME\) files undergo validation. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/platform-security/instance-security-hardening-settings/sc-validate-file-mime-type-in-attachmentcreator.html |
| release | australia |
| product | Instance Security Hardening Settings |
| classification | instance-security-hardening-settings |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | File and resourcesHardening settingsPlatform Security |