Can I use a fixed URL to access an uploaded object?
Public-read and public-read-write objects can be accessed by using fixed URLs. Private objects cannot be accessed by using fixed URLs.
-
Public-read and public-read-write objects
If the storage path is not modified, the access URL of a public-read or public-read-write object remains unchanged. You can access the object for a long period of time by using the URL in the following format:
<http or https>://<Bucket>.<Endpoint>/<Object>. Example:https://examplebucket.oss-cn-hangzhou.aliyuncs.com/example.txt.ImportantTo ensure data security, we recommend that you do not set the ACL of an object to public-read or public-read-write. If you set the ACL of an object to public-read or public-read-write, data may be accessed unexpectedly and you may be charged high fees. For more information, see Object ACLs.
-
Private objects
If the ACL of an object is private, you can access the object by using the URL in the following format:
<http or https>://<Bucket>.<Endpoint>/<Object>?Signature. The signature changes dynamically. Therefore, you cannot access a private object by using a fixed object URL. For more information, see Add signatures to URLs.ImportantTo ensure data security, we recommend that you set the ACL of an object to private. After you set the ACL of an object to private, only the owner of the object can perform read and write operations on the object.