Represents a file upload params.

interface FileUploadParams {
    file: Blob | File;
    progressHandler?: UploadProgressHandler;
    thumbnailSizes?: ThumbnailSize[];
    uploadStartedHandler?: UploadStartedHandler;
}

Properties

file: Blob | File

A file binary to upload.

progressHandler?: UploadProgressHandler

A file upload progress handler to catch the status of uploading progress.

thumbnailSizes?: ThumbnailSize[]

The file's thumbnail sizes.

uploadStartedHandler?: UploadStartedHandler

A upload started event handler. It gives a requestId that could be used to cancel the upload.