---
title: "Create File from URL"
description: "Download a file from a URL into upload storage."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/file/create-from-url"
---
# Create File from URL

> Download a file from a URL into upload storage.

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



</block-meta>

**Create File from URL** (canvas label **Create from URL**) downloads a remote file into workspace [upload storage](https://docs.vettero.com/data/files).

Set **Update file id** to replace an existing file’s contents. Turn **Upsert** on so a missing id still creates a new file. Size limits follow the same type-based caps as Files.

## Configure

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

<tbody>
  <tr>
    <td>
      <strong>
        URL
      </strong>
    </td>
    
    <td>
      Remote URL to download (required)
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Name
      </strong>
    </td>
    
    <td>
      Optional display name
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Expiry mode
      </strong>
    </td>
    
    <td>
      <strong>
        Datetime
      </strong>
      
       or <strong>
        Minutes from now
      </strong>
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Expires at
      </strong>
    </td>
    
    <td>
      Shown for Datetime — optional ISO datetime
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Expires in (minutes)
      </strong>
    </td>
    
    <td>
      Shown for Minutes from now
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Update file id
      </strong>
    </td>
    
    <td>
      Optional existing file id to replace
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Upsert
      </strong>
    </td>
    
    <td>
      Create a new file when <strong>
        Update file id
      </strong>
      
       is missing
    </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 file is stored
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The value is the created or updated file object (same shape as [Get File](https://docs.vettero.com/build/workflows/blocks/file/get)): `id`, `name`, `originalName`, `extension`, `type`, `mime`, `size`, `url`, `storage`, `expiresAt`, `createdAt`.

## Use case

- Pull a PDF or image from a partner URL, then send it with [File](https://docs.vettero.com/build/workflows/blocks/out/file) or ingest it into a [knowledge base](https://docs.vettero.com/data/knowledge-bases).
- Refresh a known file id on a schedule without creating duplicates (set **Update file id**, leave **Upsert** off).

<block-page-nav>



</block-page-nav>


## Sitemap

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