Overview
To copy an object that is greater than 5 GB, you must use multipart copy. First, use the multipart upload API to create an object. Then use the Upload Part - Copy
API and specify the x-cos-copy-source
header to determine the source object that you want to copy. The process is outlined below:
1. Initialize an object for multipart upload.
2. Copy the data of the source object; specify the x-cos-copy-source-range
header to determine how much data to copy at a time (you can specify to copy up to 5 GB at a time).
3. Complete the multipart upload.
Note:
The SDKs provided by COS can be used to easily implement a multipart copy operation.
Directions
Using REST APIs
Use REST APIs to directly initiate a multipart copy request. For more information, see the following API documentation:
Using SDKs
Use multipart copy directly through SDKs. For more information, see the SDK documentation for the corresponding programming language below:
Was this page helpful?