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

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

Hierarchy (View Summary)

Properties

groupId: string

群组 ID。

onFileUploadProgress?: (event: FileUploadProgress) => void

文件上传进度回调。

onFileUploadComplete?: (payload: unknown) => void

文件上传完成回调。

onFileUploadError?: (payload: unknown) => void

文件上传失败回调。

onFileUploadCanceled?: () => void

文件上传取消回调。

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

待上传的文件对象。