Get Status of Large File Upload Results

Last Updated on : 2023-06-20 12:34:14download

Perform polling to get the status of large file upload results, and return the information about the uploaded file.
Note: The request is only supported when the return value of the /v1.0/iot-03/app-contents/file/upload/{upload_token}/infos API contains the polling_token field.

API address

GET: /v1.0/iot-03/app-contents/big-files/status

Request parameter

Parameter name Type IN Required Description
polling_token String query true After the file upload is completed, the polling_token value in the returned message of the API for getting the file upload result.

Return parameter

Parameter name Type Description
result SecStorageScanBigRsp

Description of result

Parameter name Type Description
public_url String The URL of the file.
biz_url String File object key when saving content images, videos, and banner images.
file_id String The file ID.
error_code String The error code.
end Boolean Indicates whether the upload is completed. Valid values:
  • true: yes.
  • false: no.

Request example

GET: /v1.0/iot-03/app-contents/big-files/status?polling_token=12

Return example

{ "result": { "biz_url": "suramar/16303288604c0e092130f.jpg", "public_url": "", "file_id": "a72b1630329000026", "end": true }, "t": 1630329011028, "success": true }

Error code

For more information, see error code.