Skip to content

Commit 2550858

Browse files
carsonxucarsonxu
authored andcommitted
update demo
1 parent 54c7ff6 commit 2550858

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

demo/demo.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,10 @@ function putObject() {
773773
// Body: fs.readFileSync(filepath),
774774
// 格式2. 传入文件流,必须需要传文件大小
775775
Body: fs.createReadStream(filepath),
776-
ContentLength: fs.statSync(filepath).size
776+
ContentLength: fs.statSync(filepath).size,
777+
778+
// 万象持久化接口,上传时持久化
779+
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
777780
}, function (err, data) {
778781
console.log(err || data);
779782
fs.unlinkSync(filepath);

0 commit comments

Comments
 (0)