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

Follow the steps below to upload a file to MindsDB.

<Note>
  Note that the trailing whitespaces on column names are erased upon uploading a file to MindsDB.
</Note>

1. Access the MindsDB Editor.

2. Open the `Add` menu and choose `Upload file`.

   <p align="center">
     <img src="https://mintcdn.com/mindsdb/2W3ufVC_5_fCv4ZW/assets/sql/upload_file1.png?fit=max&auto=format&n=2W3ufVC_5_fCv4ZW&q=85&s=21362d030edc1ae248b29a715f87a234" width="808" height="572" data-path="assets/sql/upload_file1.png" />
   </p>

3. Select a file, provide its name, and click on `Save & Continue`.

   <p align="center">
     <img src="https://mintcdn.com/mindsdb/2W3ufVC_5_fCv4ZW/assets/sql/upload_file2.png?fit=max&auto=format&n=2W3ufVC_5_fCv4ZW&q=85&s=fefc4308a76712cf4e34ffa33e459eb8" width="960" height="988" data-path="assets/sql/upload_file2.png" />
   </p>

4. Now you can query the file.

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

Here is how to list all files:

```sql theme={null}
SHOW TABLES FROM files;
```

This command is the same as the command for listing tables because files uploaded to MindsDB become tables within the MindsDB ecosystem and are stored in the `files` database.

### Configuring URL File Upload for Specific Domains

The File Uploader can be configured to interact only with specific domains by using the [`url_file_upload` key in `config.json` file](/setup/custom-config#url-file-upload).
This feature allows you to restrict the handler to upoad and process files only from the domains you specify, enhancing security and control over web interactions.

To configure this, simply list the allowed domains under the [`url_file_upload` key in `config.json` file](/setup/custom-config#url-file-upload).

## What's Next?

Now, you are ready to create a predictor from a file. Make sure to check out
[this guide](/sql/create/model/)
on how to do that.
