• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. User Guide
  4. OBS Console Operation Guide
  5. Managing Objects
  6. Uploading a File

Uploading a File

This section describes how to upload local files to OBS over the Internet. These files can be text, image, video, or any other type of files.

Prerequisites

At least one bucket has been created.

Restrictions and Limitations

  • You can upload a file of size up to 50 MB using OBS Console.
  • You cannot batch upload files in OBS Console. If you need to upload multiple files at a time, it is recommended that you use OBS Browser, APIs, SDKs, or third-party tools (for example, S3cmd) to upload.

Procedure

  1. In the bucket list on the OBS Console, click the target bucket to go to the Summary page.
  2. In the navigation tree on the left, click Objects.
  3. Click Upload File. Alternatively, select the target folder and click Upload File. Figure 1 displays Upload File dialog box.

    Figure 1 Upload File

  4. Click to open the local file browser dialogue box.
  5. Select the file that you want to upload and click Open.
  6. Optional: Select a storage class. If no storage class is selected, the file storage class will inherit the bucket storage class.
  7. Optional: Select KMS encryption to encrypt the upload file. For details, see Server-Side Encryption.
  8. Click OK.
NOTICE:
  1. If a message stating that the server is busy is displayed when files are being uploaded, try again later.
  2. If an access denial message is displayed when you are uploading a file, the possible causes are as follows:
  • The access permission for the bucket is restricted by the ACL. For example, the user has no write permission for the bucket.
  • The access permission for the bucket is restricted by the bucket policy. For example, it is forbidden for users to write data to the bucket during the current period of time, the user has no write permission for the bucket, or server-side encryption is not enabled in OBS Browser, which is against the bucket policy.
  • Consequently, when the message is displayed, check ACL settings and bucket policy settings to resolve the problem.

Follow-up Procedure

You can specify its storage class when uploading an object or change its storage class after the upload in the object list. The procedure is as follows:

NOTE:
  • Objects can be changed from the Standard storage class to Warm or Cold storage class. Objects can be changed from the Warm storage class to Standard or Cold storage class. Objects of the Cold storage class must be restored before being changed to Standard or Warm storage class. The latter two changes incur penalty and restoration fees. Determine an appropriate change path based on your actual needs.
  • You can also transition storage classes by configuring the lifecycle rule. For details, see Lifecycle Management. For details about differences between changing storage classes in the object list and transitioning storage classes through the lifecycle rule, see Object Storage Classes Overview.
  1. In the bucket list on the OBS Console, click the target bucket to go to the Summary page.
  2. In the navigation tree on the left, click Objects.
  3. Select the target object and choose More > Change Storage Class on the right.
  4. Select the desired storage class and click OK.