> For the complete documentation index, see [llms.txt](https://docs-v3.toucantoco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-v3.toucantoco.com/data-management-in-datahub/datasources-in-toucan/managing-remote-file-storages/create-a-dataset-from-a-file.md).

# 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="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-5da5fb9292c350a2f4ceddc7bb9983eee2a4a979%2FCapture%20d%E2%80%99e%CC%81cran%202025-04-23%20a%CC%80%2015.51.46.png?alt=media" 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="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-3aa02e28f72ba4ac8682a9d1f37f85646a1e5cf6%2FCapture%20d%E2%80%99e%CC%81cran%202025-04-23%20a%CC%80%2015.11.14.png?alt=media" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
