> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# File attachments

> Attach text, code, data, and image files to your LMSA chats so the AI can analyze and discuss them.

When chatting with LMSA, you can attach files to share content with the AI. The app accepts a wide variety of file types for analysis and discussion.

## What your model supports

The types of files your AI model can process depend on the model you're using. Different models have different capabilities:

* **Text-based models** can handle text files, code, data files, and documents.
* **Vision models** can additionally process images (JPG, PNG, WebP).

Some specialized models may have additional restrictions or capabilities. If a file type isn't supported by your current model, the app will show an error message explaining which file types are available.

## Supported file types

### Text and documentation files

| Extension | Type |
| - | - |
| .txt | Plain text files |
| .md | Markdown documentation |
| .pdf | PDF documents |
| .doc, .docx | Microsoft Word documents |
| .html | Web pages |
| .log | Log files |

### Code files

Source code in all popular programming languages:

| Category | Extensions |
| - | - |
| Web | .js, .jsx, .ts, .tsx, .html, .css |
| Python | .py |
| Java | .java |
| C/C++ | .c, .cpp, .h, .hpp |
| Other | .go, .rs, .rb, .php, .sh, .ps1 |

### Data and configuration files

| Extension | Type |
| - | - |
| .json | JSON data and configuration |
| .csv, .tsv | Spreadsheet data (comma/tab-separated values) |
| .xml | XML structured data |
| .yaml, .yml | YAML configuration files |
| .toml, .ini, .config | Configuration files |
| .jsonl, .jsonlines | JSON lines (one JSON object per line) |

### Image files

Image attachments are supported only when using a **vision language model** (a model capable of analyzing images):

| Extension | Type |
| - | - |
| .jpg, .jpeg | JPEG images |
| .png | PNG images |
| .webp | WebP images |

If your model doesn't support images, images will be visible in the file list but cannot be analyzed.

## Tips for file attachments

* Click the **paperclip icon** in the chat to attach files.
* You can attach **multiple files** at once to a single message.
* Files are included in the context sent to the AI for analysis.
* Larger files may be truncated if they exceed content limits.
* The AI will acknowledge attached files and integrate them into its response.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.