---
title: "Persist File"
description: "Remove expiry from a file so it is kept permanently."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/file/persist"
---
# Persist File

> Remove expiry from a file so it is kept permanently.

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



</block-meta>

**Persist File** clears expiry on a [workspace file](https://docs.vettero.com/data/files) so it is kept. Temporary downloads often have `expiresAt` set; persist them before you store the id on a table or knowledge base.

The file id stays the same. To also move the bytes into upload storage, use [Move File](https://docs.vettero.com/build/workflows/blocks/file/move).

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        File id
      </strong>
    </td>
    
    <td>
      Workspace file id (required)
    </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 expiry is cleared
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is the file object with `expiresAt` null (same shape as [Get File](https://docs.vettero.com/build/workflows/blocks/file/get)).

## Use case

- After [Get Attachment](https://docs.vettero.com/build/workflows/blocks/gmail/get-attachment), persist the file before writing it to a [File](https://docs.vettero.com/data/tables/file) column.
- Keep a generated report that would otherwise expire.

<block-page-nav>



</block-page-nav>


## Sitemap

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