文件上传相关API
Members
-
static EDocUDLoadType :number
-
上传类型
Properties:
Name Type Description PROJ
number 工程类型: 工程
DOC
number 工程类型: 资料
Methods
-
inner uploadFile(imParam, funcRet)
-
Parameters:
Name Type Description imParam
JSON 格式如下
{
FilePath: string, 文件路径
UpType: EDocUDLoadType 工程类型
}funcRet
uploadFileCallback
Type Definitions
-
uploadFileCallback(returnValue)
-
uploadFile回调函数
Parameters:
Name Type Description returnValue
JSON uploadFile回调函数JSON对象
格式如下
{
ErrorInfo: string, 错误描述
FileSize: number, 文件大小
Md5: string, 文件md5
UUid: string, 文件uuid
Success: boolean, 操作成功(true)/失败(false)
}