# Upload File via URL

Register an uploaded file so the Cloud Phone downloads it.
- **Preconditions**
: the phone must be powered on and not held by another member, and
**the object must already exist at the URL**
. Live-stream uploads must be MP4 and target a device that supports streaming.
- **Completion**
:
**accepted, not complete.**
 The response returns
`fileId`
 with an in-progress status; poll
`/api/cloudphone/upload/file/result`
.
- **Surface note**
: this is the same implementation as
`/cloudphone/uploadFile`
 on the Open API. Do not confuse it with the older
`/api/cloudphone/uploadFile`
 multipart flow on this surface.

Documented business errors: `33401`, `33419`. See [Error Codes](/api-reference/getting-started/error-codes) for what each code means. Any operation can additionally return the common codes.

Endpoint: POST /api/cloudphone/upload/file
Version: 2026-09-05

## Request fields (application/json):

  - `id` (string, required)
    Cloud phone ID

  - `url` (string, required)
    Upload url, which can be the link returned by the cloudphone/upload/file/signedURL interface or other publicly accessible file download address

  - `uploadDest` (string, required)
    Storage directory

  - `uploadType` (integer)
    File type (1 = regular file, 2 = MP4 live-streaming file)
    Enum: "1", "2"

## Response 200:

  - `200` (unknown)
    Success. `data` is an object with the fields `id`, `fileId` and `status`.

## Response 200 fields (application/json):

  - `code` (integer, required)
    Response code, 0 indicates success,>0 indicates failure

  - `msg` (string | null, required)

  - `data` (object, required)

  - `data.id` (string, required)
    Cloud phone id

  - `data.fileId` (string, required)
    Upload file id

  - `data.status` (integer, required)
    Upload status;0:uploading in progress, 1:upload successful, 2:upload failed

  - `requestId` (string, required)

