axios({
method: 'post',
url: 'http://193.112.56.202:8001/api/upload/imageData',
headers: { 'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/x-www-form-urlencoded'
},
params: {
imgFile1: rst.base64
}
}).then((res) => {
this.peopleImg = res.data.fileNames[0]
})我用post上傳base64圖片,為什么上傳成功后base64會拼接到url上?這導致了有時候請求過長而請求失敗,什么原因?麻煩大佬解答下,在線等
添加回答
舉報
0/150
提交
取消