> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/workflow-builder/nodes/built-in-resources/diaflow-drive.md).

# Diaflow Drive

<figure><img src="/files/UkK72t4GuH4otm7zQbxG" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ZJEfc2g73B8Z0stUAwrQ" alt=""><figcaption></figcaption></figure>

## Description

**What it does:** Diaflow Drive is a robust storage solution that enables users to save and retrieve files and metadata. By leveraging Diaflow Drive, users can securely store a wide variety of file types, ensuring their data is always accessible when needed. This platform not only supports file storage but also allows for comprehensive metadata management, providing a structured and efficient way to handle information.&#x20;

The Diaflow Drive component has the identifier of drive-**X**, where **X** represents the instance number of the Diaflow Drive component.

**When to use it?**

* **Saving outputs**: Imagine your workflow generates a report. You can use the Diaflow Drive node to automatically save that report file to your Diaflow Drive, keeping everything organized.
* **Using files as inputs**: Let's say you have a CSV file in Diaflow Drive with a list of products. You can use the Diaflow Drive node to load that file into your workflow and then process the product data.
* **Managing files within your automation:** If your workflow needs to keep track of files, update them, or use them in different steps, Diaflow Drive node is essential for managing those files directly within your automation flow.

## Component settings

<figure><img src="/files/3YpFEJ39483kcBt8Em5L" alt=""><figcaption></figcaption></figure>

| Parameter Name | Description                                                                                                                                                                                                   |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action         | <p>Refers to the action to be performed on the drive. </p><p>There are 4 possibilities.</p><ul><li>Save file </li><li>Get file URL</li><li>Retrieve file metadata</li><li>Retrieve folder metadata </li></ul> |
| Folder         | Select the exact location to perform an action.                                                                                                                                                               |
| File data      | <p>Only available if you select "Save file".<br></p><p>The file will be pushed into the drive.</p>                                                                                                            |
| From           | <p>Only available if you select "Get file" or "Get file metadata". </p><p>The target file/folder to get files.</p>                                                                                            |
| Select file    | <p>Only available if you select "Get file URL" or "Retrieve file metadata". <br></p><p>Clicking to view or select a file</p>                                                                                  |

## Advanced configurations

This Diaflow Drive component has no advanced configurations.

## Use case

Here is a simple use case of the Diaflow Drive component, where the Diaflow Drive component is used to save an input file, which is a PDF, into Diaflow's drive.

**Input**:

* Action = "Save File"
* Folder = "/root"
* File data = Refer to the URL Link of the node before

<figure><img src="/files/4AAXcSDXByPqZuRkFssr" alt=""><figcaption></figcaption></figure>

**Output**:

<figure><img src="/files/KmKJOZ9R44OrTlEYNXsl" alt=""><figcaption></figcaption></figure>

At the Diaflow Drive page, when the user reloads the page, they will view the file&#x20;

<figure><img src="/files/0ra1w87gewOvBBjrZSqb" alt=""><figcaption></figcaption></figure>
