Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
5.4 KiB
Uploading an Object
This section describes how to upload local files to OBS over the Internet. These files can be texts, images, videos, or any other type of files.

OBS Console allows you to upload files in a batch. Up to 100 files can be uploaded at a time, with the total size of no more than 5 GB. If the file size exceeds 5 GB, use OBS Browser or the multipart upload of OBS SDKs and APIs for upload.
If versioning is disabled for your bucket and you upload a new file with the same name as the one you previously uploaded to your bucket, the new file automatically overwrites the previous file and does not retain its ACL information. If you upload a new folder using the same name that was used with a previous folder in the bucket, the two folders will be merged, and files in the new folder will overwrite namesake files in the previous folder.
After versioning is enabled for your bucket, if the new file you upload has the same name as the one you previously uploaded to the bucket, a new file version will be added in the bucket. For details about versioning, see Versioning Overview.
Prerequisites
- At least one bucket has been created.
- If you want to classify files, you can create folders and upload files to different folders. For details about how to create a folder, see Creating a Folder
Procedure
- In the bucket list, click the bucket you want to operate. The Overview page of the bucket is displayed.
- In the navigation pane, choose Objects.
- Go to the folder to which objects are uploaded. Click Upload Object. The Upload Object dialog box is displayed.
- Select a storage class. If you do not specify a storage class, the object you upload inherits the default storage class of the bucket.
- Add a file or folder to be uploaded by dragging it to the Upload Object area.
You can also click add file in the Upload Object area to select files.
- (Optional) Select KMS encryption to encrypt the uploaded file. For details, see Uploading an Object in Server-Side Encryption Mode.
- Click Upload.