> For the complete documentation index, see [llms.txt](https://macdocs.supgpt.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://macdocs.supgpt.app/chat/chat/attaching-files.md).

# Attaching Files

You can attach text-based files to your message in two ways:

* By pressing the ![](/files/YFpzO8oWpcDuxHJismeQ) button on the prompt bar.
* By dragging the files into the chat window.

<figure><img src="/files/uxrpxszMFqcHCLJ3cVWb" alt=""><figcaption></figcaption></figure>

The contents of attached files are injected into the message. As long as the message containing the attached files is within the current context window, their content will remain accessible to the model.

**I**<mark style="background-color:yellow;">**mportant**</mark><mark style="background-color:yellow;">: For large files, you may need to adjust the context window limit.</mark>

<figure><img src="/files/gN9sLjCRwZx7xSKfAv9U" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Hint**: To have continuous access to the content of larger files, it is recommended to utilize the [Search in Files](/tools/search-in-files.md) tool.
{% endhint %}
