Use small micro-channel program sm.ms upload pictures return value in coordination with other

Copyright Notice: Copyright: This article is a blogger original article, reproduced please retain the original link https://blog.csdn.net/weixin_43365995/article/details/88991614

Photo micro-channel using the API sm.ms FIG bed
upload codes
wx.chooseImage ({
Success: RET => {
var filePath = ret.tempFilePaths [0];
wx.uploadFile ({
URL: ' https://sm.ms/ API / Upload ',
filePath: filePath,
name:' smfile ',
success: RES => {
the console.log (' uploaded successfully: ', RES);
}
});
}
})

Guess you like

Origin blog.csdn.net/weixin_43365995/article/details/88991614