uni.chooseImage({
count:1,
success(res){
console.log(res);
const tempFilePath=res.tempFilePaths[0];
const name=res.tempFiles[0].name;
console.log(tempFilePath);
uniCloud.uploadFile({
filePath:tempFilePath,//文件地址
cloudPath:name,
success(res) {
console.log(res);
},
fail(err) {
console.log(err);
}
})
},
fail(err){
console.log(err);
}
})