Skip to content

Commit

Permalink
upd:优化base64文件上传demo
Browse files Browse the repository at this point in the history
  • Loading branch information
livehigh committed Jun 3, 2021
1 parent cd0be19 commit cb8f356
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,6 @@ function putObject_base64ToBlob() {
Key: 'base64_file.png', /* 必须 */
Body: dataURLtoBlob(base64Url),
onTaskReady: function (tid) {
TaskId = tid;
logger.log('onTaskReady', tid);
},
onTaskStart: function (info) {
Expand All @@ -956,7 +955,6 @@ function putObject_base64ToBlob() {
Headers: {
// 万象持久化接口,上传时持久化
// 'Pic-Operations': '{"is_pic_info": 1, "rules": [{"fileid": "test.jpg", "rule": "imageMogr2/thumbnail/!50p"}]}'
'content-type': 'image/png',
},
}, function (err, data) {
logger.log('putObject:', err || data);
Expand Down

0 comments on commit cb8f356

Please sign in to comment.