Object Storage Service

Aliyun OSS

1. create bucket
2. create sub-account that has granted permissions
3. use accesskey and secret

browser -> transfer directly -> oss

callback-based direct transfer

Error when uploading imgs from the browser:

1. OPTION request to get token -> POST request but get denied 

reason: time is not syncronized between local and server

endpoint: 上传oss; bucket domain name: access the img

1. no need to the callback, access the img by url -> <bucket domain name + object name> 

2. 设置Callback url: https://www.cnblogs.com/sabertobih/p/17855458.html

 

posted @ 2023-11-25 12:05  PEAR2020  阅读(6)  评论(0编辑  收藏  举报