Skip to content

Commit

Permalink
thought: 20240802
Browse files Browse the repository at this point in the history
  • Loading branch information
zou8944 committed Aug 2, 2024
1 parent 246ec00 commit 40ba31a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions thoughts/202408
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## 2024-08-02

阿里云 OSS 支持 STS \ 签名URL \ 服务端签名 等三种主要客户端上传方式,一直想用签名 URL 上传,但今天试了下发现使用它时两个比较不方便的点:

- 需要客户端提供后缀
- 需要客户端提供 Content-Type,否则就是 application/octet-stream,意味着客户端上传时也要讲 Content-Type 设置为 application/octet-stream,访问文件时,也是该请求头,这意味着文件无法预览.

个人认为这非常不易用:客户端上传时一般是不会关心文件是什么格式,MIME 类型是什么,相较而言,现在我更加倾向于 STS 的上传方式了.

0 comments on commit 40ba31a

Please sign in to comment.