上传群组共享文件时的输入参数。

interface GroupUploadSharedFileInput {
    onFileUploadProgress?: (event: FileUploadProgress) => void;
    onFileUploadComplete?: (payload: unknown) => void;
    onFileUploadError?: (payload: unknown) => void;
    onFileUploadCanceled?: () => void;
    file: Record<string, unknown> | Blob | CompatibleFile;
}

Hierarchy (View Summary)

Properties

onFileUploadProgress?: (event: FileUploadProgress) => void

文件上传进度回调。

onFileUploadComplete?: (payload: unknown) => void

文件上传完成回调。

onFileUploadError?: (payload: unknown) => void

文件上传失败回调。

onFileUploadCanceled?: () => void

文件上传取消回调。

file: Record<string, unknown> | Blob | CompatibleFile

待上传的文件对象。