wx.chooseMessageFile 从客户端会话选择文件在小米MIX4 中无任何反应
微信版本:8.0.49
var tath = this;
wx.chooseMessageFile({
count: 1,
type:"file",
success(res){
var tempFiles = res.tempFiles;
var data = tempFiles[0];
data.openid = wx.getStorageSync('openid');
wx.uploadFile({
url: api.uploaduserresume,
filePath: tempFiles[0].path,
name: 'file',
formData : data,
success (res){
const data = res.data
console.log(data);
wx.redirectTo({
url: '../enclosure/enclosure'
});
}
})
}
})
只有这个机型有问题吗?有报错吗