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

# uplink:FileReference

> A file a connector downloaded during a run — a PDF statement or tax form — described by name, type, and size.

**`uplink:FileReference/v1`** — a file the connector downloaded during the run, such as a W-2 or a statement PDF. The output carries the file's metadata, not its bytes.

## Fields

| Field | Type | Required | Description |
| - | - | - | - |
| `filename` | string | ✓ | Suggested filename for saving (e.g. 'gusto-w2-2025.pdf'). |
| `contentType` | string | ✓ | Media type of the content (e.g. 'application/pdf'). |
| `flowId` | string | ✓ | Identifies the download within the run's session history. |
| `bytes` | integer | | Size of the file in bytes. |

## Example

```json theme={null}
{
  "filename": "gusto-w2-2025.pdf",
  "contentType": "application/pdf",
  "flowId": "0000002a",
  "bytes": 48213
}
```

## Emitted by

Not emitted on its own. It appears nested in [`uplink:TaxForm`](https://docs.uplink.build/vocabulary/TaxForm) and [`uplink:Paystub`](https://docs.uplink.build/vocabulary/Paystub).

## Related

* [`uplink:TaxForm`](https://docs.uplink.build/vocabulary/TaxForm) — `file` is a FileReference
* [`uplink:Paystub`](https://docs.uplink.build/vocabulary/Paystub) — `file` is a FileReference


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.