Write the Code. Change the World.

9月 11

oss 为企业或个人提供了文件存储访问功能。将文件上传到 oss 就是最直接的问题。我们可以通过阿里云后台上传,也可以通过应用程序工具上传。但利用阿里云提供的 api 上传是最好的方式。因为这样方便数据的接入。阿里云官方文档提供了几个 demo 。

最佳实践

https://help.aliyun.com/document_detail/31925.html?spm=a2c4g.11186623.2.2.878c62121zD4re#concept_frd_4gy_5db

这个最大的缺点,是暴露了 accessid 和 accesskey 。

https://help.aliyun.com/document_detail/31926.html?spm=a2c4g.11186623.6.637.22202f0862W1am

这个服务端直接签名后再上传,避免了暴露。

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注