更换UpFile域名后,ios为什么一直闪退
发布于 5 年前 作者 xiulancheng 19010 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

wx.chooseVideo({

success: function(res) {

let tempFilePaths = res.tempFilePath;

wx.uploadFile({

url: `${domain.upfiledomain}/Api/File/UpLoadFile`,

header: {

‘Content-Type’: ‘multipart/form-data’,

‘Authorization’: 'Bearer ’ + token

},

filePath: tempFilePaths,

method: ‘POST’,

name: ‘file’,

fail: function(err) {

console.log(err);

},

success: function(res) {}

})

}

})


upfile之前没有改的时候是没有问题的,后来单独分出来一个服务器放文件,上传的时候安卓没有问题,ios会秒退。

回到顶部