> ## Documentation Index
> Fetch the complete documentation index at: https://learn.workflow.dog/llms.txt
> Use this file to discover all available pages before exploring further.

# Download File from URL

> Fetch a public URL and return its response as a file.

**Download File from URL** retrieves a public resource and turns the response
bytes into a WorkflowDog file.

## Inputs

| Input        | Type   | Required | Description                          |
| ------------ | ------ | -------- | ------------------------------------ |
| **URL**      | String | Yes      | The complete public URL to download. |
| **Filename** | String | No       | A custom output filename.            |

## Output

| Output   | Type | Description             |
| -------- | ---- | ----------------------- |
| **File** | File | The downloaded content. |

When **Filename** is empty, the action uses the last part of the URL path. If
that name has no extension, `.bin` is added. The response's `Content-Type`
header supplies the MIME type when available; otherwise it is inferred from
the filename.

<Warning>
  Internal, local, and private network addresses are blocked. The action also
  fails when the remote server returns a non-success HTTP status.
</Warning>
