Object Upload Overview
You can use this API to upload an object to a specified bucket. In OBS, objects are basic data units that you can operate. OBS Python SDK provides many APIs for uploading objects using various methods:
- Text-Based Upload: Character strings are used as the data source of an object.
- Streaming Upload: Readable objects that contain the read property are used as the data source of an object.
- File-Based Upload: Local files are used as the data source of objects.
- Multipart Upload: You can upload a large file in multiple parts.
- Appendable Upload: You can append data to an object.
- Resumable Upload: You can encapsulate and enhance multipart upload in response to an upload failure of large files due to unstable network or program breakdown.
- Browser-Based Upload: You can upload objects to a specified bucket in HTML form.
SDK supports the upload of objects whose size ranges from 0 KB to 5 GB. For streaming upload, appendable upload, and file-based upload, data to be uploaded in a batch cannot be larger than 5 GB. If the file is larger than 5 GB, multipart upload (whose part size is smaller than 5 GB) is suitable. Browser-based upload allows files to be uploaded through a browser.
If the uploaded object can be read by anonymous users, anonymous users can access the object data through the object URL after the upload succeeds. The object URL is in the format of https://bucket name.domain name/directory levels/object name. If the object resides in the root directory of a bucket, its URL does not contain a directory level.
Last Article: Objects-Related APIs
Next Article: Uploading Objects - Text-Based
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.