Uploading a File
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.
Limitations and Constraints
For batch upload on OBS Console, you can upload a maximum of 100 files in a batch, with the total size not more than 5 GB. If you upload only one file in the batch upload mode, the maximum size of the file is 5 GB.
If the file size exceeds 5 GB, you can use OBS Browser+ or obsutil to upload the file. Or you can use the OBS SDKs or APIs to upload the file through multipart upload, with the maximum upload size of 48.8 TB.
OBS Browser+ allows you to upload a maximum of 500 files at a time. There is no limit on the number of files you can upload using obsutil at a time.
If you have a large amount of data to be uploaded, refer to Migrating Local Data to OBS and Migrating Data from Third-Party Cloud Service Vendors to OBS.
If versioning is disabled and the name of a newly uploaded file is the same as that of a file in the bucket, the newly uploaded file automatically overwrites the existing file and does not retain the ACL information of the existing file. If the name of the newly uploaded folder is the same as that of a folder in the bucket, the two folders will be merged, and files in the new folder will overwrite namesake files in the old folder.
After versioning is enabled for a bucket, if a newly uploaded file has the same name as a file in the bucket, a new file version will be added to the bucket. For details about versioning, see Versioning.
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 navigation pane on the left of OBS Console, choose Object Storage.
- In the bucket list, click a bucket name, and then the Overview page of the bucket is displayed.
- In the navigation pane on the left, click Objects.
- Go to the folder to which objects are uploaded. Click Upload Object. The Upload Object dialog box is displayed.
If the files that you want to upload to OBS are stored in Microsoft OneDrive, it is recommended that the names of these files contain a maximum of 32 characters.
Figure 1 Uploading objects
- Select a storage class. If no storage class is selected, the file will inherit the 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 a File with Server-Side Encryption.
If the default encryption is enabled for a bucket, uploaded objects are automatically encrypted.
- Click Upload.
Related Operations
You can specify its storage class when uploading an object or change its storage class after the object is uploaded. The procedure is as follows:
- In the navigation pane on the left of OBS Console, choose Object Storage.
- In the bucket list, click a bucket name, and then the Overview page of the bucket is displayed.
- In the navigation pane on the left, click Objects.
- Select the target object and choose More > Change Storage Class on the right.
You can also select multiple files at a time, and click Change Storage Class above the object list, to change the storage class of objects one batch.
Objects of Archive storage class cannot be changed if they are not restored.
- Select the desired storage class and click OK.
- Objects can be changed from Standard to Infrequent Access or Archive storage class, or from Infrequent Access to Standard or Archive storage class, but objects in Archive storage class must be restored before being changed to Standard or Infrequent Access storage class. Changing from Infrequent Access or Archive to other storage classes incurs restoration fees. Select an appropriate change option based on your actual needs.
- When the storage class is changed to Archive, the object restoration status changes to Unrestored.
- You can also configure a lifecycle rule to change the storage class of an object. For details, see Configuring a Lifecycle Rule.
Follow-up Procedure
You can click More > Copy Path on the right of an object to copy the path of the object.
You can share the path with other users. Then they open the bucket where the object is stored and enter the path in the search box to find the object.
Last Article: Creating a Folder
Next Article: Downloading a File
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.