How Do I Upload Objects Larger Than 5 GB?
Context
OBS Console puts limits on the size and number of files you can upload.
- In regions where batch upload is supported, a maximum of 100 files can be uploaded at a time, with a maximum total size of 5 GB.
- In regions where batch upload is not supported, only one file can be uploaded at a time, with a maximum size of 50 MB.
Therefore, for a single file to be uploaded, its maximum size can be 5 GB in a batch upload or 50 MB in a single upload.
Methods
- 5 GB < Object <= 48.8 TB
If an object is larger than 5 GB, you can use OBS Browser+ or obsutil to upload it. Or you can use the OBS SDKs or API to upload the object (up to 48.8 TB) with a multipart upload.
- Using OBS Browser+
Files are uploaded using multipart upload on OBS Browser+. With multipart upload, you can upload a single file with the maximum size of 48.8 TB.
OBS Browser allows up to 500 files to be uploaded at a time.
For details about using OBS Browser+ to upload objects, see Uploading a File or Folder.
- Using obsutil
With multipart upload, you can upload a single file with the maximum size of 48.8 TB. There is no limit on the number of files that can be uploaded at a time.
For details about using obsutil to upload objects, see Uploading an Object.
- Using OBS SDKs
OBS SDK supports uploading a large object with a multipart upload. A multipart upload consists of initiating a multipart upload, uploading parts one by one or concurrently, and assembling parts.
Table 1 Multipart upload using OBS SDKs Language
References
Java
Python
C
Go
BrowserJS
.NET
Android
iOS
PHP
Node.js
- Using OBS APIs
You can upload a large object with a multipart upload API. A multipart upload consists of:
- Using OBS Browser+
Buckets and Objects FAQs
- Why Am I Unable to Create a Bucket?
- Why Am I Unable to Upload an Object?
- Why Am I Unable to Download an Object?
- Why Can't I Delete a Bucket?
- Why Can't I Delete an Object?
- What Is the Relationship Between Bucket Storage Classes and Object Storage Classes?
- Can I Rename an Object?
- Can I Modify the Region of a Bucket?
- Can I Edit Objects in OBS Online?
- How Do I Obtain the Access Path to an Object?
- Why Can't I Search for Certain Objects in My Bucket?
- How Do I Preview Objects in OBS in a Browser Online?
- What Should I Do If an Error Message Is Displayed When I Use Internet Explorer to Access an Object URL That Contains Chinese Characters?
- With CDN Acceleration Enabled, Why Are the Objects in My OBS Bucket Directly Downloaded When I Access Them?
- Why Is an Error Reported Even If CORS Has Been Configured?
- How Do I Batch Delete a Large Number of Objects from a Bucket or Empty a Bucket?
- How Do I Change the Enterprise Project Where My Bucket Belongs?
- How Do I Upload Objects Larger Than 5 GB?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
more