Skip to content

Commit

Permalink
上传支持 AddMetaMd5
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Aug 1, 2019
1 parent f4eeea4 commit cdd1f1f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dist/cos-js-sdk-v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -5006,6 +5006,7 @@ function putObject(params, callback) {
if (params.ContentLength !== undefined) {
params.Headers['Content-Length'] = params.ContentLength;
}
onProgress(null, true); // 任务状态开始 uploading
submitRequest.call(self, {
Action: 'name/cos:PutObject',
TaskId: params.TaskId,
Expand Down Expand Up @@ -10823,6 +10824,7 @@ function sliceUploadFile(params, callback) {
});

// 获取 UploadId
onProgress(null, true); // 任务状态开始 uploading
uploadSliceList.call(self, {
TaskId: TaskId,
Bucket: Bucket,
Expand Down
2 changes: 1 addition & 1 deletion dist/cos-js-sdk-v5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)",
"main": "index.js",
"scripts": {
"sts.js": "node server/sts.js",
"dev": "SET NODE_ENV=development&& webpack -w",
"build": "SET NODE_ENV=production&& webpack",
"sts.js": "node server/sts.js",
"cos-auth.min.js": "uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m"
},
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/advance.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function sliceUploadFile(params, callback) {
});

// 获取 UploadId
onProgress(null, true); // 任务状态开始 uploading
uploadSliceList.call(self, {
TaskId: TaskId,
Bucket: Bucket,
Expand Down
1 change: 1 addition & 0 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,7 @@ function putObject(params, callback) {
if (params.ContentLength !== undefined) {
params.Headers['Content-Length'] = params.ContentLength;
}
onProgress(null, true); // 任务状态开始 uploading
submitRequest.call(self, {
Action: 'name/cos:PutObject',
TaskId: params.TaskId,
Expand Down

0 comments on commit cdd1f1f

Please sign in to comment.