---
title: "Copy File"
description: "Copy a file into upload storage as a new file."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/file/copy"
---
# Copy File

> Copy a file into upload storage as a new file.

<block-meta block="Yes" channels="Any" folder="file" group="File" groupTo="/build/workflows/blocks/file" icon="i-lucide-copy" pipe="Value" scope="Any" tool="Yes" type="file.copy">



</block-meta>

**Copy File** duplicates a [workspace file](https://docs.vettero.com/data/files) into upload storage. The copy has a **new id**. The source file is unchanged.

Use [Move File](https://docs.vettero.com/build/workflows/blocks/file/move) when you want the same id moved into upload storage instead of a second file.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        File id
      </strong>
    </td>
    
    <td>
      Source file id (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Name
      </strong>
    </td>
    
    <td>
      Optional display name for the copy
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the copy is created
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is the **new** file object (same shape as [Get File](https://docs.vettero.com/build/workflows/blocks/file/get)). Use `id` for later steps.

## Use case

- Keep a durable copy of a chat file in the library before the conversation is deleted.
- Duplicate a library asset so a table row can own its own file id.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
