使用uniCloud.uploadFile上传文件,在H5环境测试正常;但在字节小程序模拟器下不正常
使用腾讯云存储
const uploadFile = (cloudPath,filePath ) => {
uniCloud.uploadFile({
cloudPath,
filePath,
success(res){
console.log(res)
},
fail(err){
console.log(, err)
},
complete(){
console.log(cloudPath)
console.log(filePath)
}
})
}
返回结果和H5 一致