cloud189-sdkcloud189-sdk
  • 介绍
  • 快速上手
  • 更新日志
API
GitHub
  • 介绍
  • 快速上手
  • 更新日志
API
GitHub

Home > cloud189-sdk-docs > CloudClient > upload

CloudClient.upload() method

文件上传

Signature:

upload(param: {
        parentFolderId: string;
        filePath: string;
        familyId?: string;
    }, callbacks?: UploadCallbacks): Promise<{
        fileDataExists: number;
        file: {
            userFileId: string;
            fileName: string;
            fileSize: number;
            fileMd5: string;
            createDate: string;
            rev: number;
            userId: number;
        };
        code: string;
    }>;

Parameters

Parameter

Type

Description

param

{ parentFolderId: string; filePath: string; familyId?: string; }

上传参数

callbacks

UploadCallbacks

(Optional) 上传回调

**Returns:**

Promise<{ fileDataExists: number; file: { userFileId: string; fileName: string; fileSize: number; fileMd5: string; createDate: string; rev: number; userId: number; }; code: string; }>

Edit this page