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 54c7ff6 commit 2550858Copy full SHA for 2550858
demo/demo.js
@@ -773,7 +773,10 @@ function putObject() {
773
// Body: fs.readFileSync(filepath),
774
// 格式2. 传入文件流,必须需要传文件大小
775
Body: fs.createReadStream(filepath),
776
- ContentLength: fs.statSync(filepath).size
+ ContentLength: fs.statSync(filepath).size,
777
+
778
+ // 万象持久化接口,上传时持久化
779
+ // 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
780
}, function (err, data) {
781
console.log(err || data);
782
fs.unlinkSync(filepath);
0 commit comments