Skip to content

Upload File (Multipart)

Request

Upload a local file straight to a Cloud Phone (legacy multipart flow).

  • Preconditions: the phone must be powered on and not held by another member. The upload code obtained from the signed-URL step is single-use.
  • Completion: the response only confirms the Local API accepted the transfer. No task id and no polling state are exposed, so progress cannot be observed.
  • Use instead: /api/cloudphone/upload/file/signedUrl → PUT → /api/cloudphone/upload/file → /api/cloudphone/upload/file/result when you need observable progress and retry handling.
  • Note: this path is not the same operation as /cloudphone/uploadFile on the Open API, which registers an already-uploaded object.

Documented business errors: 33401, 33419. See Error Codes for what each code means. Any operation can additionally return the common codes.

Bodymultipart/form-datarequired
idstringrequired

Cloud phone ID

Example:"1661515884160372"
filestring, (binary)required

File to upload

Example:"file://D:\\application\\apifox\\LICENSE.electron.txt"
uploadDeststringrequired

Upload destination directory

Example:"/Download"
curl -i -X POST \
  http://127.0.0.1:40000/api/cloudphone/uploadFile \
  -H 'Content-Type: multipart/form-data' \
  -F id=1661515884160372 \
  -F file=@file.bin \
  -F uploadDest=/Download

Responses

The Local API accepted the direct upload and returns an empty JSON object.

Bodyapplication/json
object, <= 0 properties
Response
{}