Search
Loading...
Skip to content

Type Alias: UploadAction

type UploadAction = (file, onProgress, context?) => Promise<AssetDefinition>;

Action function for uploading files to asset sources.

Parameters#

ParameterTypeDescription
fileFileThe file to upload
onProgress(progress) => voidProgress action that receives upload progress (0-100)
context?UploadCallbackContextOptional context information for the upload operation

Returns#

Promise<AssetDefinition>

A promise that resolves with the uploaded asset definition