# Files

APIs for Files.

 - [POST /api/cloudphone/uploadFile](https://guide.morelogin.com/api-reference/cloud-phone/local-api/files/fileuploadusing.md): 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 st
 - [POST /api/cloudphone/upload/file/signedUrl](https://guide.morelogin.com/api-reference/cloud-phone/local-api/files/getcloudphoneuploadsignedurllocal.md): Request a pre-signed URL for uploading a file that a Cloud Phone will receive. - **Preconditions**: the phone must be powered on and not held by another member. - **Completion**: synchronous. **The pr
 - [POST /api/cloudphone/upload/file](https://guide.morelogin.com/api-reference/cloud-phone/local-api/files/uploadcloudphonefilebyurllocal.md): 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-stre
 - [POST /api/cloudphone/upload/file/result](https://guide.morelogin.com/api-reference/cloud-phone/local-api/files/getcloudphoneuploadresultlocal.md): 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 n
 - [POST /api/cloudphone/download](https://guide.morelogin.com/api-reference/cloud-phone/local-api/files/downloadcloudphonefilelocal.md): Download a file from a Cloud Phone. - **Preconditions**: the phone must be powered on and not held by another member. - **Effect**: the service scans the parent directory first and only then starts th
 - [POST /api/cloudphone/download/result](https://guide.morelogin.com/api-reference/cloud-phone/local-api/files/getcloudphonedownloadresultlocal.md): Poll the status of a file download from a Cloud Phone. - **Preconditions**: the phone must be powered on and not held by another member. Pass the `downId` returned by the download request. - **Values*
 - [POST /api/cloudphone/setKeyBox](https://guide.morelogin.com/api-reference/cloud-phone/local-api/files/setcloudphonekeyboxlocal.md): Install a keybox certificate on a Cloud Phone. - **Preconditions**: `filePath` must point to an `.xml` file, and the phone must be powered on and not held by another member. - **Effect**: hands the ce
