1.5分片上传应用
简要描述
请求URL
https://www.pingxingyun.com/console/api/poc/hostAppli/sliceUpload
请求方式
字段名 |
示例值 |
必选 |
类型 |
说明 |
Key |
xxxxxxxx |
是 |
string |
调用开发者平台接口必传参数,在开发者平台后台,账号—安全设置—秘钥管理查看,平台秘钥Key |
timestamp |
8641648782406069 |
是 |
string |
当前时间戳,单位:毫秒 |
signature |
6DDB63E9E0539638E2F07D8E183BB71BDFDCE375 |
是 |
string |
在开发者平台后台,账号—安全设置—秘钥管理查看Key&Secret:用于二次开发的接入凭证 【使用规则】 |
请求Body参数
参数名 |
示例值 |
必选 |
类型 |
说明 |
uploadId |
0000017FE3C9DF0A84D0416AA94375C1 |
是 |
string |
一个文件上传的整体标识,设置为1.3获取上传Id的uploadId的值 |
chunkIndex |
0 |
是 |
string |
当前为第几分片,从0开始,取值0-9999 |
chunkStart |
0 |
是 |
string |
当前分片起始位置 |
chunkSize |
5242880 |
是 |
string |
每个分块的大小,单位:B,除了最后一个分片没有大小限制,其他的分片最小为100 KB,不大于20M |
totalSize |
15728640 |
是 |
string |
文件总大小 |
totalChunkCnt |
3 |
是 |
string |
分片数量,不能超过10000 |
成功返回示例的参数说明
参数名 |
类型 |
说明 |
code |
int |
返回状态 |
message |
string |
返回消息 |
result |
object |
Code=1000的时候,Api返回的数据 |
completeType |
string |
0:文件分片上传完成,1整个文件上传完成 |
trunkIndex |
string |
当前为第几分片 |
fileSize |
string |
应用程序包大小 |
appliPath |
string |
应用存储文件夹名称 |
zipFilePath |
string |
zip包的完整路径 |
isUnzipEnable |
string |
是否解压标识 ,true表示后端解压,false表示后端未解压 |
exeFileNameList |
array |
本地存储时返回执行文件路径列表 |
pxy_wy
2025年3月11日 17:38
收藏文档