Skip to content

Commit d3a32d1

Browse files
authored
Update demo.js
1 parent 5fa451a commit d3a32d1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

demo/demo.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,9 @@ function putObject() {
327327
onProgress: function (progressData) {
328328
console.log(JSON.stringify(progressData));
329329
},
330-
// 格式1. 只传文件路径
331-
FilePath: path.resolve(__dirname, filename),
332-
// 格式2. 传入文件内容
330+
// 格式1. 传入文件内容
333331
// Body: fs.readFileSync(filepath),
334-
// 格式3. 传入文件流,必须需要传文件大小
332+
// 格式2. 传入文件流,必须需要传文件大小
335333
// Body: fs.createReadStream(filepath),
336334
// ContentLength: fs.statSync(filepath).size
337335
}, function (err, data) {

0 commit comments

Comments
 (0)