---
title: "Upload"
description: "Pause and collect a file upload, optionally limited by type."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/in/file"
---
# Upload

> Pause and collect a file upload, optionally limited by type.

<block-meta block="Yes" channels="Chat" folder="basic/input" group="Input" groupTo="/build/workflows/blocks/in" hitl="Yes" icon="i-lucide-upload" pipe="Value" scope="Any" tool="No" type="in.file">



</block-meta>

**Upload** (palette name **Upload**) asks the person in a **chat** session to send a file, then continues. Restrict by **Type**, or choose **Other** and list **Accepted Mimes**. Shared bind, navigation, and error options are on [Input](https://docs.vettero.com/build/workflows/blocks/in).

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        Type
      </strong>
    </td>
    
    <td>
      Image, video, audio, PDF, Word, Excel, text, presentation, archive, or <strong>
        Other
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Accepted Mimes
      </strong>
    </td>
    
    <td>
      Only when <strong>
        Type
      </strong>
      
       is <strong>
        Other
      </strong>
      
      . Leave empty to allow any file
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Prompt
      </strong>
    </td>
    
    <td>
      Optional message before the uploader
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Error Handler
      </strong>
      
       / <strong>
        Navigation
      </strong>
      
       / <strong>
        Binding Variable
      </strong>
    </td>
    
    <td>
      Shared input options
    </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 a valid file (or skip / ignore)
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`).

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        id
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      File id
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        size
      </code>
    </td>
    
    <td>
      number
    </td>
    
    <td>
      Size in bytes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        type
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Generic type
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        mime
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      MIME type
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        url
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      Download URL
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        name
      </code>
    </td>
    
    <td>
      text
    </td>
    
    <td>
      File name
    </td>
  </tr>
</tbody>
</table>

If **Binding Variable → Key** is set, the same object is stored under that name. Send the file later with [File](https://docs.vettero.com/build/workflows/blocks/out/file) or a similar output block.

When you write this object into a [table](https://docs.vettero.com/data/tables), each property maps to a column by **exact key** (`id`, not `Id`).

## Use case

- Ask for a PDF or image before creating a record. [Copy](https://docs.vettero.com/build/workflows/blocks/file/copy) or [Move](https://docs.vettero.com/build/workflows/blocks/file/move) the file into the library if the record should outlive the conversation.
- Restrict to images so the next step can show [Image](https://docs.vettero.com/build/workflows/blocks/out/image) output.

<block-page-nav>



</block-page-nav>


## Sitemap

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