We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fa451a commit d3a32d1Copy full SHA for d3a32d1
demo/demo.js
@@ -327,11 +327,9 @@ function putObject() {
327
onProgress: function (progressData) {
328
console.log(JSON.stringify(progressData));
329
},
330
- // 格式1. 只传文件路径
331
- FilePath: path.resolve(__dirname, filename),
332
- // 格式2. 传入文件内容
+ // 格式1. 传入文件内容
333
// Body: fs.readFileSync(filepath),
334
- // 格式3. 传入文件流,必须需要传文件大小
+ // 格式2. 传入文件流,必须需要传文件大小
335
// Body: fs.createReadStream(filepath),
336
// ContentLength: fs.statSync(filepath).size
337
}, function (err, data) {
0 commit comments