File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -808,9 +808,10 @@ function putObject() {
808
808
// 格式2. 传入文件流,必须需要传文件大小
809
809
Body : fs . createReadStream ( filepath ) ,
810
810
ContentLength : fs . statSync ( filepath ) . size ,
811
-
812
- // 万象持久化接口,上传时持久化
813
- // 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
811
+ Headers : {
812
+ // 万象持久化接口,上传时持久化
813
+ // 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
814
+ } ,
814
815
} , function ( err , data ) {
815
816
console . log ( err || data ) ;
816
817
fs . unlinkSync ( filepath ) ;
@@ -1156,6 +1157,10 @@ function sliceUploadFile() {
1156
1157
onProgress : function ( progressData ) {
1157
1158
console . log ( JSON . stringify ( progressData ) ) ;
1158
1159
} ,
1160
+ Headers : {
1161
+ // 万象持久化接口,上传时持久化
1162
+ // 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
1163
+ } ,
1159
1164
} , function ( err , data ) {
1160
1165
console . log ( err || data ) ;
1161
1166
fs . unlinkSync ( filepath ) ;
You can’t perform that action at this time.
0 commit comments