# Large File Upload Completed

# API Description

This API is used to call after file upload

# Environment

# Test

https://oversea.saicmaxus.com/australia/test/fir/large_file/complete (opens new window)

# Prod

https://oversea.saicmaxus.com/australia/fir/large_file/complete (opens new window)

# Method

POST

# Request

# Authorization

Set 'maxus_jwt' in header,see in Get Maxus JWT Token

# Payload

Parameter Type Required Description 中文描述
uploadId File Yes Upload sharding and merge sharding parameters 上传合并分片参数

# Example

curl --request POST \
  --url https://oversea.saicmaxus.com/australia/fir/large_file/complete \
  --header 'content-type: multipart/form-data' \
  --header 'maxus_jwt: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhc2NDb2RlIjoiNDE5ODEzMCIsImFzY0lkIjo0MTk4MTMwLCJhc2NOYW1lIjoiQVRFQ08iLCJleHBpcmVUaW1lU3RhbXAiOiIxNzEwMTM4NTI0NDMyIiwic2FwQWNjb3VudCI6IjQxOTgxMzAiLCJzZXJ2aWNlQ29kZSI6IkF0ZWNvIiwiaWF0IjoxNzEwMTM4MzQ0LCJleHAiOjE3MTAxMzk3ODR9.0O8pyaw0jkmooOHtFf54wYQsXgfrI4GQYOgUZ48cI4Q' \
  --form 'uploadId=2~e0oRomCkLDF6WwQnzloDxO9Ul04MTGL'

# Response

# Payload

Parameter Type Description
status int 1: Success, 0: Failure
errMsg String Error message
data String Encrypted file upload url

# Response Code (errCode)

Status Code Description
200 Success
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
500 Unknown Error
503 Dependency System Unavailable

# Example

# OK

{
  "status": 1,
  "errMsg": "SUCCESS",
  "errCode": "200",
  "data": "cb2bf31fca3f4dbeb6f8863c20d41eb4263a5ea46afae55aae70a8e3da74dd9b2d2410893ffcc1f40ff4465301b4fc88521faea1e0a73d388060d4f579ec40fd1d5c0434652c00fc4aa0ae40c5f37feebd27ff5de04a5ff32e4c3e9f87a0b9e6418fa31e73bdcdc9de25c15868eb4f06"
}

# NOT FOUND

{
  "status": 0,
  "errMsg": "NOT FOUND",
  "errCode": "404",
  "data": null
}

# INTERNAL ERROR

{
  "status": 0,
  "errMsg": "DEPENDENCY SYSTEM UNAVAILABLE",
  "errCode": "503",
  "data": null
}
{
  "status": 0,
  "errMsg": "UNKNOWN ERROR",
  "errCode": "500",
  "data": null
}

# GATEWAY ERROR

http status code: 500

# Unit Test

TODO