# File attachments for chat context

Attach files to a chat message to give Olly additional context for your prompt — for example, a screenshot of an error, a configuration file, or a CSV of metrics. Olly reads each attached file alongside your prompt and uses it to inform the response.

## Attach files

To attach files, select the attachment option in the chat input bar and select files from your device. You can attach up to 5 files per message, with a maximum of 5 MB per file.

While files upload, Olly shows a progress indicator for each one. You cannot send the message until all uploads complete. To cancel an upload, select the **X** next to the file.

If you try to attach more than 5 files, Olly shows a warning and rejects the additional files.

## Supported file types

Olly currently supports the following file formats:

- **Images**: `.jpg`, `.png`, `.svg`, `.web`
- **Text-based files**: `.pdf`, `.txt`, `.json`, `.csv`, `.md`

If a text-based file is too large for Olly to process, Olly shows an error and skips that file. You can continue the conversation without the attachment.

## View attachments in the conversation

Attached files appear inline with your message:

- **Images** display as a preview thumbnail.
- **Other file types** display as a card with a file-type icon and file name.

Attachments stay with the conversation as long as it exists in your chat history and remain available for download. Deleting a conversation also removes its attachments.

## Next steps

Connect a code source for code-aware investigations in [GitHub integration](https://coralogix.com/docs/user-guides/olly/github/index.md).
