Simple Upload

Last Updated At: 2025-10-21 09:10:00

Applicable Scenario

This operation is suitable for uploading an object smaller than 5 GB in a single request. For objects larger than 5 GB, you must use the multipart upload method.

In a high bandwidth or weak network environment, if your object is relatively large, for example, over 100 MB, we recommend you use Multipart Upload.

Usage Instructions

Using the REST API

Use REST APIs to initiate a simple upload request. For more information, see PUT Object.

Using Java SDKs

COS supports AWS Java SDK. See Using AWS S3 SDK to Access COS to access COS, and operate according to the PUT Object section in the official documentation of AWS Java SDK 2.20.0.