Help Center> Object Storage Service> FAQs> APIs and SDKs> Failure with OBS SDK in Uploading a File Greater than 5 GB
Updated on 2022-07-07 GMT+08:00

Failure with OBS SDK in Uploading a File Greater than 5 GB

OBS server has a restriction on the object upload API, which only allows a maximum of 5 GB for an upload. If you want to upload a file greater than 5 GB, use the multipart upload API. Operations are detailed in the following procedure:

  1. Call the OBS API for initializing a multipart upload task to generate a multipart upload ID (Upload ID).
  2. Call the OBS API for uploading parts one by one or in parallel. The size of each part can be up to 5 GB.
  3. After parts are uploaded, call the OBS API to merge parts to generate the complete object.

OBS SDKs support atomic operations. In the section "Multipart Upload" of OBS SDK Reference in different programing languages, you can find more information about how to implement multipart upload using OBS SDKs.

APIs and SDKs FAQs

more