# Message Attachments

Chat messages may contain attachments such as images, videos, or data.

## Supported Attachment Types

The Chat provides built-in support for displaying:

* Images—The `contentType` must start with `"image/"`. The `content` must be a valid URL.
* Plain-text attachments—The built-in Chat template displays any content other than images as text.

## Defining Attachments

To define attachments for a message:

1. Populate the [`attachments`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/message#attachments) field of the message.
2. Set the `content` and an optional `contentType` for each [Attachment](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/attachment). Typically, the `content` type identifier for the attachment is MIME, but you can also use a string.

## Display Modes

By default, message attachments are displayed as a carousel or card deck below the message. You can also display attachments in a list by setting the [`attachmentLayout`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/message#attachmentlayout) of the message.

[Demo Source](https://demos.telerik.com/kendo-react-ui/conversational-ui/chat/file-uploads-and-media/attachments/source.txt)

## Suggested Links

* [Attachment Templates](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/customization/attachment-templates)
* [File Upload](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/file-uploads-and-media/upload)
* [Speech to Text](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/file-uploads-and-media/speech-to-text)
* [Chat API Reference](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api)
