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.

Constraints

  • You can upload a file of up to 50 MB using OBS Console.

  • You cannot batch upload files in OBS Console. To upload multiple files at a time, use OBS Browser+, or use APIs.

  • 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 one 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 those with the same name 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, 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, see Creating a Folder.

Procedure

  1. In the bucket list, click the bucket you want to operate to go to the Objects page.

  2. Go to the folder where you want to upload files and click Upload Object. The Upload Object dialog box is displayed.

    Note

    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 to ensure compatibility.

    **Figure 1** Uploading objects

    Figure 1 Uploading objects

  3. Select a storage class. If you do not specify a storage class, the objects you upload inherit the default storage class of the bucket.

    Note

    An object can have a different storage class from its bucket. You can specify a storage class for an object when uploading it, or you can change the object storage class after the object is uploaded.

  4. In the Upload Object area, drag and drop the files or folders you want to upload.

    You can also click add files to select files.

  5. Server-Side Encryption: Choose SSE-KMS or Disable. For details, see Enabling Server-Side Encryption When Uploading an Object.

    Note

    If the bucket has server-side encryption configured, the object you upload will inherit encryption from the bucket by default.

  6. (Optional) To configure metadata or WORM retention policies, click Next: (Optional) Configure Advanced Settings.

    Note

    WORM retention policies can be configured in the advanced settings only when WORM is enabled for the bucket.

    Configuring metadata: Add metadata ContentDisposition, ContentLanguage, WebsiteRedirectLocation, ContentEncoding, or ContentType as needed. For more information, see Object Metadata. Metadata is a set of name-value pairs. The metadata value cannot be left blank. You can add two or more metadata entries by clicking Add.

    Configuring WORM retention: Choose Inherit from bucket, or choose Configure and then specify a retention period, to automatically protect new objects uploaded to the bucket from being deleted.

    **Figure 2** Configuring metadata or WORM retention

    Figure 2 Configuring metadata or WORM retention

  7. Click Upload.

Follow-up Procedure

You can click Copy Path on the right of an object to copy its path.

You can share the path with others. Then they can open the bucket where the object is stored and enter the path in the search box above the object list to find the object.