---
schema_version: "1"
id: b08aefba504b39ee497af1262f380adc8e1e403b708b6cdfc404ac464700bc56
title: Mime Types (dw::module::Mime)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.9/dw-mime-types.md
canonical_url: https://docs.mulesoft.com/dataweave/2.9/dw-mime-types
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 187a8e80448fc69454da002a98baaae713c749c520990395f14013bcb07ee04d
description: MuleSoft Documentation Site
release: "2.9"
latest: false
---
---
product: DataWeave
version: 2.9
---

# Mime Types (dw::module::Mime)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Type</th><th>Definition</th><th>Description</th></tr></thead><tbody><tr><td><p>MimeType</p></td><td><div><div><p><code>type MimeType = { "type": String, subtype: String, parameters: MimeTypeParameter }</code></p></div></div></td><td><div><div><p>DataWeave type for representing a MIME type. Supports the following fields:</p></div><div><ul><li><p><code>type</code>: Represents the general category into which the data type falls, such as 'video' or 'text'.</p></li><li><p><code>subtype</code>: Identifies the exact kind of data of the specified type the MIME type represents.</p></li><li><p><code>parameters</code>: Parameters attached to the MIME type.</p></li></ul></div><div><p><em>Introduced in DataWeave version 2.7.0.</em></p></div></div></td></tr><tr><td><p>MimeTypeError</p></td><td><div><div><p><code>type MimeTypeError = { message: String }</code></p></div></div></td><td><div><div><p>DataWeave type of the data that returns when a <code>fromString</code> function fails. Supports the following fields:</p></div><div><ul><li><p><code>message</code>: The error message.</p></li></ul></div><div><p><em>Introduced in DataWeave version 2.7.0.</em></p></div></div></td></tr><tr><td><p>MimeTypeParameter</p></td><td><div><div><p><code>type MimeTypeParameter = { _?: String }</code></p></div></div></td><td><div><div><p>DataWeave type for representing a MIME type parameter.</p></div><div><p><em>Introduced in DataWeave version 2.7.0.</em></p></div></div></td></tr></tbody></table>
