Skip to content

Get File Upload Status

Request

Poll the status of a file upload to a Cloud Phone.

  • Values: 0 uploading, 1 succeeded, 2 failed.
  • Empty result: when the fileId cannot be found the call still succeeds but data is null. Treat that as “not visible yet or no longer present”, not as a failure.
  • Cost: the lookup scans the device file list; poll at a modest interval.
  • Surface note: same implementation as /cloudphone/uploadFileResult on the Open API.
Bodyapplication/jsonrequired
idstringrequired
fileIdstringrequired
curl -i -X POST \
  http://127.0.0.1:40000/api/cloudphone/upload/file/result \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "1666625111121936",
    "fileId": "10069434"
  }'

Responses

Success. data is an object with the fields id, fileId and status.

Headers
any
Bodyapplication/json
codeintegerrequired

Response code, 0 indicates success,>0 indicates failure

msgstring or nullrequired
dataobject or nullrequired
requestIdstringrequired
Response
{ "code": 0, "msg": null, "data": { "id": "1666625111121936", "fileId": "10069435", "status": 0 }, "requestId": "e5d69c5e2d364106a0715dab1d9a03d3" }