Help Center/ Object Storage Service/ User Guide (Kuala Lumpur Region)/ FAQ/ APIs and SDKs/ Failure with OBS SDK in Uploading a File Greater than 5 GB
Updated on 2025-01-26 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.