Method Signature
Parameters
File | Blob
required
File object to upload (from input element or Node.js Buffer)
Example
- TypeScript
Supported Formats
Related Methods
Update Customer
Attach files to customer
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Upload files for KYC documents
align.files.upload(file: File | Blob): Promise<UploadFileResponse>
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}`);
| Format | MIME Type | Max Size |
|---|---|---|
| JPEG | image/jpeg | 10 MB |
| PNG | image/png | 10 MB |
application/pdf | 10 MB |