Skip to content

Get File Upload Result

Request

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

  • Preconditions: the phone must belong to your team. This is the least restricted file endpoint — it does not require the phone to be powered on or claimed by you.
  • 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, so it is not cheap. Poll at a modest interval rather than in a tight loop.
Security
Authorization
Bodyapplication/jsonrequired
idstringrequired

Cloud phone ID

Example:"1661515884160372"
fileIdstringrequired

Uploaded file ID

curl -i -X POST \
  https://api.morelogin.com/cloudphone/uploadFileResult \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "1661515884160372",
    "fileId": "1661515884160372"
  }'

Responses

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

Headers
any
Bodyapplication/json
codeintegerrequired
msgstring or nullrequired
dataobject or nullrequired
requestIdstringrequired
Response
{ "code": 0, "msg": null, "data": { "id": "1661515884160372", "fileId": "1661515884160111", "status": 1 }, "requestId": "1d4f3ea968664593860b94b35d4ebf5e" }