Connect the Tencent Cloud COS SDK and call the putObject method to upload materials. The upload address and the upload credentials are needed for this process.
For details about the examples of other languages, see COS-SDK Overview.
Note:
When the upload object method in the SDK is called, temporary credentials and bucket information are needed, which can all be obtained through the Obtain the Temporary Token for Uploading API. The following examples illustrate this.
Temporary credentials information is shown in the figure below:
Was this page helpful?