Help Center> Object Storage Service> FAQs> Buckets and Objects> Why Can't I Access an Object Through Its URL?

Why Can't I Access an Object Through Its URL?

If you are the owner of the object and cannot access the object using the URL, check the following items:

  • Check whether the ContentType of the object metadata is correct. For details about the values of ContentType, see Object Metadata Overview. If the ContentType value does not fall into the correct value range, correct it. You can change the ContentType in the object metadata on OBS Console, or by using an API or SDK.
    Table 1 Modifying object metadata

    Tool

    Reference

    OBS Console

    Configuring Object Metadata

    API

    Modifying Object Metadata

    SDK

    Section about setting object attributes in the SDK Reference

  • If you are using a user-defined URL, check whether the object URL contains forbidden characters. For details, see the description of forbidden URL characters in the developer guide.

If you are the object owner and have shared the URL with other users but they cannot access the object, check the following items: