type UploadAction = (file, onProgress, context?) => Promise<AddImageOptions>;Action function for uploading files to asset sources.
Parameters#
| Parameter | Type | Description |
|---|---|---|
file |
File |
The file to upload |
onProgress |
(progress) => void |
Progress action that receives upload progress (0-100) |
context? |
UploadCallbackContext |
Optional context information for the upload operation |
Returns#
Promise<AddImageOptions>
A promise that resolves with the uploaded asset definition