Skip to content

Commit 3d2e394

Browse files
committed
修改 demo
1 parent 77d3392 commit 3d2e394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/demo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ function putObject() {
209209
Key: filename, /* 必须 */
210210
Body: fs.createReadStream(filepath), /* 必须 */
211211
ContentLength: fs.statSync(filepath).size, /* 必须 */
212-
onProgress: function (processData, percent) {
213-
console.log(processData, percent);
212+
onProgress: function (processData) {
213+
console.log(JSON.stringify(progressData));
214214
},
215215
}, function (err, data) {
216216
if (err) {

0 commit comments

Comments
 (0)