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

# Upload File

> Upload files for KYC documents

## Method Signature

```typescript theme={null}
align.files.upload(file: File | Blob): Promise<UploadFileResponse>
```

## Parameters

<ParamField body="file" type="File | Blob" required>
  File object to upload (from input element or Node.js Buffer)
</ParamField>

## Example

<Tabs>
  <Tab title="TypeScript">
    ```typescript theme={null}
    import Align from "@tolbel/align";

    // In a browser environment with a file input
    const fileInput = document.querySelector('input[type="file"]');
    const file = fileInput.files[0];

    const result = await align.files.upload(file);

    console.log(`File ID: ${result.id}`);
    ```
  </Tab>
</Tabs>

## Supported Formats

| Format | MIME Type         | Max Size |
| ------ | ----------------- | -------- |
| JPEG   | `image/jpeg`      | 10 MB    |
| PNG    | `image/png`       | 10 MB    |
| PDF    | `application/pdf` | 10 MB    |

<Warning>
  Files are encrypted at rest and only accessible for KYC verification purposes.
</Warning>

## Related Methods

<CardGroup cols={2}>
  <Card title="Update Customer" icon="pen" href="/docs/api/customers/update">
    Attach files to customer
  </Card>
</CardGroup>
