type UploadAction = (file, onProgress, context?) => Promise<AssetDefinition>;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<AssetDefinition>
A promise that resolves with the uploaded asset definition