# Download file

Node type `browser_downloadFile`

## What it does

Download a file for use by the workflow.

## Desktop client configuration

![Download file configuration in the desktop client](/assets/download-file.35a15d9eb47315c27299eeb276388ee23c9da83d40644af5f983a495339dd605.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

These fields belong in `data.browserUi.inputs`.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `url` | `string` | No | — | File URL |
| `path` | `string` | No | — | Save directory |


## Mode requirements and limits

- url is required. path is an optional save directory, not a full file name. There is no file size limit. Only the request phase (before the response headers are received) has a 30-second limit. The whole download is bound by the node timeout. For large files, increase the node timeout.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `url` | `literal`, `template` |
| `path` | `literal`, `template` |


## Outputs

| Output field | Type or values |
|  --- | --- |
| `path` | `string` |
| `name` | `string` |
| `url` | `string` |
| `mimeType` | `string` |
| `sizeBytes` | `number` |
| `reused` | `boolean` |


Reference published fields as `${nodeId.data.field}`.

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`. Replace the local paths with absolute paths on your machine.

```json
{
  "id": "download_report",
  "type": "browser_downloadFile",
  "data": {
    "title": "Download the monthly report",
    "browserAction": "downloadFile",
    "browserUi": {
      "inputs": {
        "url": "https://example.com/files/report.pdf",
        "path": "/Users/example/Downloads"
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

[Back to the node catalog](/browser-rpa/nodes)