@bnfe/obs-upload 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# @bnfe/obs-upload
|
|
2
2
|
|
|
3
|
-
华为云 OBS 浏览器上传包,使用方式参照 `@bnfe/oss-upload`。
|
|
4
|
-
|
|
5
3
|
## 安装
|
|
6
4
|
|
|
7
5
|
```sh
|
|
@@ -150,7 +148,7 @@ pnpm --filter @bnfe/obs-upload build
|
|
|
150
148
|
|
|
151
149
|
浏览器跨域上传需要桶配置对应来源的 CORS 规则,并将 `ETag` 添加到暴露的响应头,使 SDK 可以读取分段 ETag 完成合并。
|
|
152
150
|
|
|
153
|
-
客户端固定使用 OBS 签名,关闭签名版本协商,不发起 `?apiversion` 探测。桶的 CORS
|
|
151
|
+
客户端固定使用 OBS 签名,关闭签名版本协商,不发起 `?apiversion` 探测。桶的 CORS 仍需允许实际页面来源(设置为*)、`PUT`、`GET`、`POST`、`DELETE`、`HEAD` 方法及上传请求头;允许的请求头可设置为 `*`。
|
|
154
152
|
|
|
155
153
|
- [文件上传](https://support.huaweicloud.com/sdk-browserjs-devg-obs/obs_24_0503.html)
|
|
156
154
|
- [分段上传](https://support.huaweicloud.com/sdk-browserjs-devg-obs/obs_24_0507.html)
|