Help Center> Object Storage Service> SDK Reference> BrowserJS> FAQs> How Do I Obtain the Object URL?

How Do I Obtain the Object URL?

Compose the URL 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 directory levels.
  • You can click here to view the domain names of each region.
  • For example, if you want to access the object named test.txt in the test folder of bucket testbucket residing in region CN North-Beijing4, the URL of the object is https://testbucket.obs.cn-north-4.myhuaweicloud.com/test/test.txt.