Follow the steps below to upload a file to MindsDB.

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

  1. Access the MindsDB Editor.

  2. Open the Add menu and choose Upload file.

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

  4. Now you can query the file.

    SELECT * FROM files.file_name;

Configuring URL File Upload for Specific Domains

The File Uploader can be configured to interact only with specific domains by using the file_upload_domains setting in the config.json file. 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 file_upload_domains key in config.json. For example:

"file_upload_domains": [
   "s3.amazonaws.com",
    "drive.google.com"
]

What’s Next?

Now, you are ready to create a predictor from a file. Make sure to check out this guide on how to do that.