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

# Upload TXT files to MindsDB

You can upload TXT files of any size to MindsDB that runs locally via [Docker](/setup/self-hosted/docker) or [pip](/contribute/install).

TXT files are divided into chunks and stored in multiple table cells. MindsDB uses the [TextLoader from LangChain](https://api.python.langchain.com/en/latest/document_loaders/langchain_community.document_loaders.text.TextLoader.html) to load TXT files.

## Upload files

Follow the steps below to upload a file:

1. Click on the `Add` dropdown and choose `Upload file`.

<p align="center">
  <img src="https://mintcdn.com/mindsdb/U8_C23ppbMIBDBSs/assets/files/upload_file.png?fit=max&auto=format&n=U8_C23ppbMIBDBSs&q=85&s=0a25773f735c4f147425651de94caca4" width="1042" height="666" data-path="assets/files/upload_file.png" />
</p>

2. Upload a file and provide a name used to access it within MindsDB.

<p align="center">
  <img src="https://mintcdn.com/mindsdb/U8_C23ppbMIBDBSs/assets/files/upload_file_from_computer.png?fit=max&auto=format&n=U8_C23ppbMIBDBSs&q=85&s=bd588de4dd6fa52b36eec2761e3242b3" width="868" height="834" data-path="assets/files/upload_file_from_computer.png" />
</p>

## Query files

Here is how to query data within MindsDB.

Query for the content of the file uploaded under the name `my_file`.

```sql theme={null}
SELECT *
FROM files.my_file;
```
