rk
9 天以前 8d8ff48ab58d1a8bd7f2308335e8593e55b91d19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
export declare const apiName = "internal.cspace.uploadFile";
/**
 * 将给出路径的本地文件上传保存到钉盘 请求参数定义
 * @apiName internal.cspace.uploadFile
 */
export interface IInternalCspaceUploadFileParams {
    /** 文件路径:使用其他JSAPI返回的APFilePath。 */
    path: string;
    /** 文件名 */
    name?: string;
    /** 钉盘空间ID */
    spaceId: string;
    /** 钉盘目录ID */
    folderId?: string;
    /** 操作ID */
    opeId: string;
}
/**
 * 将给出路径的本地文件上传保存到钉盘 返回结果定义
 * @apiName internal.cspace.uploadFile
 */
export interface IInternalCspaceUploadFileResult {
    data: {
        /** 文件所在钉盘空间的ID */
        spaceId: string;
        /** 钉盘文件ID */
        fileId: string;
        /** 文件的名称 */
        fileName: string;
        /** 文件大小,单位:byte(字节) */
        fileSize: number;
        /** 文件扩展名 */
        fileType: string;
    };
}
/**
 * 将给出路径的本地文件上传保存到钉盘
 * @apiName internal.cspace.uploadFile
 * @supportVersion ios: 4.6.37 android: 4.6.37
 */
export declare function uploadFile$(params: IInternalCspaceUploadFileParams): Promise<IInternalCspaceUploadFileResult>;
export default uploadFile$;