wx.uploadFile 上传大视频报错,请问api是否做了限制,如果限制了大小是多少?
错误提醒: uploadfile: fail connection reset
wx.chooseVideo({
compressed:false,
success(res) {
console.log(res)
var tempFilePath = res.tempFilePath
var postData = {
'tempName': tempFilePath
}
const uploadTask = wx.uploadFile({
url: "http://10.21.28.105/api" + '/VideoUpload/UpladFile',
filePath: tempFilePath,
name: 'file',
formData: postData,
success: function (res) {
console.log(res)
},
fail: (f) => {
console.log('uploadVideo2/fail')
console.log(f)
}
})
//更新进度条
uploadTask.onProgressUpdate((res) => {
that.setData({
percent: res.progress
})
})
},
fail: (f) => {
console.log('VideoUpload/fail')
console.log(f)
}
})