# Import a file from a storage

### Navigate in a remote file storage connection and create a dataset

To create a dataset from a Remote file storage connection, click on "Import a new file from this storage". You will then be able to:

### **Select a File or Folder**

* You can specify the path to a single file or a folder on the SFTP server.
* If a folder is selected, the connector will list all entries within the folder.

<figure><img src="/files/rllRVJhjUXjshEqOT0qu" alt=""><figcaption><p>Remote file storage navigation</p></figcaption></figure>

### Create a new dataset from a file

After adding a file from a file storage system by clicking on the `+` icon at the right of the file named, you'll be redirected to an interface where you can configure how Toucan will interpret the file.

{% hint style="info" %}
the file type will be pre-filled if Toucan guess it from the file extension, otherwise it must be specified manually
{% endhint %}

<figure><img src="/files/KT80wnE85KLuoCoaOCRe" alt=""><figcaption><p>Create a dataset from a file located in a file storage</p></figcaption></figure>

in this interface, you can:

* view the file path (which cannot be modified)
* configure the file type (csv, parquet, excel, json, geojson).

{% hint style="warning" %}
Please note that if the file type you choose does not match the system file type, you will receive a Toucan error.
{% endhint %}

Once the configuration is complete, you can click on `Preview` or `Validate` to create a dataset from this file.

## Create a dataset from a file located in a remote file storage

The dataset created from this file can be **stored** (downloaded in Toucan) or live (read directly from the file storage system).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-v3.toucantoco.com/data-management-in-datahub/datasources-in-toucan/managing-remote-file-storages/create-a-dataset-from-a-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
