Menu

Upload Local Files to Cloud Drive

Usage Instructions

Used to upload local files to the team cloud drive.

Request Instructions

  • Method: POST
  • Endpoint: /api/v1/cloudDisk/signedUrl

Steps

  1. Call the API to obtain the pre-signed upload URL signedUrl and request headers
  2. Use the PUT method to upload the local file via the signedUrl

Windows PowerShell Examples

  1. Use curl.exe instead of curl
  2. Replace x-oss-callback, x-oss-callback-var, and signedUrl with actual values returned by the API
powershell Copy
curl.exe `
  -X PUT `
  -H "x-oss-callback: $x-oss-callback" `
  -H "x-oss-callback-var: $x-oss-callback-var" `
  -T "D:\Downloads\test.apk" `
  "$signedUrl"

Windows CMD Examples

CMD Copy
curl.exe ^
  -X PUT ^
  -H "x-oss-callback: %x-oss-callback%" ^
  -H "x-oss-callback-var: %x-oss-callback-var%" ^
  -T "D:\Downloads\test.apk" ^
  "%signedUrl%"

Linux / macOS Examples

CMD Copy
  curl \
  -X PUT \
  -H "x-oss-callback: ${x-oss-callback}" \
  -H "x-oss-callback-var: ${x-oss-callback-var}" \
  -T "/tmp/test.apk" \
  "${signedUrl}"

Request Parameters

Parameter Type Required Description
name string Yes File name. Must include file extension (e.g., test.png)
is_app boolean No Whether the file is an app package. 1 for Yes, 0 for No
pkg string No App package name. Required and must be accurate when is_app = 1. Missing or incorrect package name may cause upload failure

Note:
App package name ≠ App display name. The package name is the unique identifier of an app and cannot be modified arbitrarily. Otherwise, installation may fail.

Request Example

json Copy
{
   "name":"test.apk",
   "is_app": 1,
   "pkg": "com.test.apk"
}

Response Example

json Copy
{
    "code": 200,
    "data": {
        "method": "PUT",
        "signedUrl": "http://xxxxx",         // Pre-signed upload URL
        "headers": {                         // Request headers
            "x-oss-callback": "eyJjYWxsYmFja1VybCI6Imh0dHBzOi8vYXBpLXRlc3QuZHVvcGx1cy5uZXQvb3NzVXBsb2FkL3YxL2NhbGxiYWNrIiwiY2FsbGJhY2tCb2R5IjoiYnVja2V0PSR7YnVja2V0fSZvYmplY3Q9JHtvYmplY3R9JmV0YWc9JHtldGFnfSZzaXplPSR7c2l6ZX0mbWltZVR5cGU9JHttaW1lVHlwZX0mY3JjNjQ9JHtjcmM2NH0mY29udGVudE1kNT0ke2NvbnRlbnRNZDV9JnZwY0lkPSR7dnBjSWR9JmNsaWVudElwPSR7Y2xpZW50SXB9JnJlcUlkPSR7cmVxSWR9Jm9wZXJhdGlvbj0ke29wZXJhdGlvbn0mdGVhbT0ke3g6dGVhbX0mdXNlcj0ke3g6dXNlcn0mdXBsb2FkSWQ9JHt4OnVwbG9hZElkfSIsImNhbGxiYWNrU05JIjp0cnVlfQ==",
            "x-oss-callback-var": "eyJ4OnRlYW0iOiJKSHdjOCIsIng6dXNlciI6Im96N0NEIiwieDp1cGxvYWRJZCI6IkV5Q0FjNENEdTVfVUhzRTFJanpjU3FpRyJ9"
        },
        "name": "test.apk",
        "original_file_name": "test.apk"
    },
    "message": "Success"
}

How to Get Android App Package Name?

The package name is the unique identifier of an Android app (e.g., com.zzkko).

Method 1: From App Store

Applicable to: Google Play
Steps:

  1. Open the app detail page in a browser
  2. Copy the page URL
  3. Find the id= paramete

Examplehttps://play.google.com/store/apps/details?id=com.zzkko Package name:com.zzkko


Method 2: From APK Download Websites

Applicable to: APKPure, APKMirror, etc.
Steps:

  1. Open the app download page
  2. Check the URL or app information

Example: https://apkpure.net/xxx/com.zzkko Package name:com.zzkko


Method 3: From APK / XAPK File

Applicable if you already downloaded the APK/XAPK file

Steps:

  1. Open the file using archive tools (WinRAR / 7-Zip)
  2. Locate: AndroidManifest.xml
  3. Find: package="com.xxx.xxx"

Method 4: Using Mobile Tools

Install one of the following apps:

  • App Inspector
  • DevCheck

Steps:

  1. Open the tool
  2. Select the app
  3. View: Package name: com.xxx.xxx

Method 5: Using ADB Command

adb Copy
Command:
adb shell pm list packages | findstr 关键字

Example:
package:com.zzkko
Previous
File push
Next
Automation
Last modified: 2026-04-24Powered by