type OnUploadCallback = (file, onProgress, context?) => Promise<AddImageOptions>;Represents the upload callback function for the Creative Editor SDK. This type defines a function that handles file uploads, including progress updates and context.
Parameters#
| Parameter | Type |
|---|---|
file |
File |
onProgress |
(progress) => void |
context? |
UploadCallbackContext |
Returns#
Promise<AddImageOptions>