Updated on 2022-05-17 GMT+08:00

Accessing an Object Using Its URL

If you set the permission for an object to allow anonymous users to read it, anonymous users can access the object through the URL that you shared.

Prerequisites

A read permission has been set for anonymous users. For details about how to enable the permission, see Authorizing Access Permissions to Anonymous Users.

Encrypted objects cannot be shared.

Procedure

  1. In the bucket list, click the bucket to be operated. The Overview page of the bucket is displayed.
  2. In the navigation pane, click Objects.
  3. Click the object to be shared. The object information is displayed on the top part of the page. The Link displays the shared link of the object.

    Anonymous users can access the object by clicking the URL. The object URL is in the format of https://bucket name.domain name/directory level/object name. If the object resides in the root directory of the bucket, its URL does not contain the directory level.
    • To allow anonymous users to access objects whose storage classes are Cold using the URL, ensure that the objects are in the Restored state.
    • The method of using a browser to access objects varies depending on the object type. You can directly open .txt and .html files using a browser. However, when you open .exe and .dat files using a browser, the files are automatically downloaded to your local computer.