# import-file-from-dropbox

## Description

<mark style="color:purple;">`import-file-from-dropbox`</mark> *adaptor can be used to import a file stored in Dropbox for use with other adaptors within a workflow.*

The file on Dropbox should be shared as `Anyone with this link can view`. Obtain the file URL by selecting the file you want to import on Dropbox.com, clicking on `Share with Dropbox`, and then clicking on `Copy link` to obtain a link to your file. This url is then used as the adaptor input.

Care should be taken when selecting the sharing options for the Dropbox links, to ensure that any data protection and privacy guidelines are followed when creating links that are accessible in Data-flo.

## Inputs

**`url`**\
Type: `text`\
Required: Yes\
The URL of the Dropbox file to be imported. You can find this in Dropbox by getting a share link for the file.

## Outputs

**`file`**\
Type: `file`\
The imported file.

## Examples

### Example 1: Default behaviour.

#### Inputs:

`file`: <https://www.dropbox.com/scl/fi/2c0mvrmhuj0pxs09ggi3v/data.csv?rlkey=3vkyl3legz0j67bh88zr8pgfo&dl=0>

#### Outputs:

`data` output:

<table><thead><tr><th width="128">id</th><th width="132">latitude</th><th width="139">longitude</th></tr></thead><tbody><tr><td>Sample A</td><td>4.642276772</td><td>-8.17536836</td></tr><tr><td>Sample B</td><td>5.063345736</td><td>-9.051186684</td></tr><tr><td>Sample C</td><td>5.063345736</td><td>-9.051186684</td></tr><tr><td>Sample D</td><td>4.638091468</td><td>-8.17536836</td></tr></tbody></table>

-> In this example, we obtain a link to a file on [Dropbox ](https://www.dropbox.com/scl/fi/2c0mvrmhuj0pxs09ggi3v/data.csv?rlkey=3vkyl3legz0j67bh88zr8pgfo\&dl=0)and we import it to Data-flo.

## Use Cases

* Dropbox could be used to house a CSV metadata file and a Newick tree file which could be imported into Data-flo to create a Microreact project.


---

# 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://cgps.gitbook.io/data-flo/reference-guide/import-file-from-dropbox.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.
