sliceUpload(recommend)


Concise description
  • The shard upload application interface requires priority to obtain the uploadId before uploading
Request URL
  • {{adminHost:8181}}/appli/sliceUpload
Request Method
  • post
Header
Field Name Sample Required Type Note
adminKey 603284317954637824 Yes string This parameter is for backend management access credentials, which can be viewed in LarkXR3.3 backend access management
timestamp 8641706679604867 Yes string The timestamp when sending a request, in milliseconds
signature 9A02B47AE67664D80A2ED13FC2B1691512613790 Yes string This parameter is a key signature. Sort the adminKey (viewed in LarkXR3.2 backend access management), adminSecret (viewed in LarkXR3.3 backend access management), and current timestamp (long value) in alphabetical order, and then perform SHA-1 summary signature. Please refer to the example of [Obtaining Voucher Signature]
Request Body Parameters
Field Name Sample Required Type Note
uploadId   Yes string None
chunkIndex   Yes int None
chunkStart   Yes long None
chunkSize   Yes long None
totalSize   Yes long None
totalChunkCnt   Yes int None
originalFilename   Yes string None
chunk   Yes file None
Success Response Example
{
    "code": 1000,
    "message": "All Success",
    "result": {
        "completeType": 1,
        "trunkIndex": 1,
        "fileSize": "41110976",
        "appliPath": "20240131153919055",
        "zipFilePath": "/opt/larkxr-cluster/appli/20240131153919055/1202276937167273985.zip",
        "exeFileNameList": [
            "UnityCrashHandler64.exe",
            "lark_xr_test.exe"
        ],
        "isUnzipEnable": false
    }
}
Parameter Note for Success Response Example
Field Name Type Note
code string None
message string None
result object None
complexType string 0: File shard upload completed, 1. The entire file upload completed
trunkIndex string What is the current shard?
fileSize string Application package size
appliPath string Application storage folder name
zipFilePath string The complete path to the zip package
exeFileNameList array When using local storage and the application is a Windows platform application, return a list of exe file paths in the zip package
isUnzipEnable string Whether to decompress identification, true indicates backend decompression, false indicates backend not decompressed
Note

采用对象存储(Minio,OSS,OBS,S3)时,接口的返回格式:
{
“code”: 1000,
“message”: “上传完毕”,
“result”: {
“fullPath”: “887351768835424256.zip”,
“fileSize”: “1839631”,
“appliPath”: “20210914145907888”,
“zipFilePath”: “887351768835424256.zip”
}
}


admin 2025年4月8日 14:16 收藏文档