# File Upload

The Chat component allows users to share documents, images, and other media files. This feature enables rich content sharing and collaboration.

To enable file upload, configure the [`uploadConfig`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#uploadconfig) property. This property accepts either a boolean or an [`UploadProps`](https://www.telerik.com/kendo-react-ui-develop/components/upload/api/uploadprops) object. Set to `true` for default settings or use an object for more precise configuration.

The file upload feature displays an attachment button next to the message input. Users can click to select files, which are automatically uploaded and attached to messages. You can control how attached files are displayed using the [`messageFilesLayout`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#messagefileslayout) property, which supports three layout modes: `vertical` (stacked vertically), `wrap` (wraps to new rows), and `horizontal` (single row with overflow).

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

## Suggested Links

* [Speech to Text](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/file-uploads-and-media/speech-to-text)
* [Message Tools](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/messages/tools)
* [Events Handling](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/events)
* [Chat API Reference](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api)
