> ## 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 CSV, XLSX, XLS files to MindsDB

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

CSV, XLSX, XLS files are stored in the form of a table inside MindsDB.

## 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>

3. Alternatively, upload a file as a link 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_url.png?fit=max&auto=format&n=U8_C23ppbMIBDBSs&q=85&s=3d2919867ba34c821c8a153a9ece4efe" width="886" height="804" data-path="assets/files/upload_file_from_url.png" />
</p>

## Query files

The CSV, XLSX, and XLS files may contain one or more sheets. Here is how to query data within MindsDB.

Query for the list of available sheets in the file uploaded under the name `my_file`.

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

Query for the content of one of the sheets listed with the command above.

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