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會(huì)拼接到url上?這導(dǎo)致了有時(shí)候請(qǐng)求過長而請(qǐng)求失敗,什么原因?麻煩大佬解答下,在線等
添加回答
舉報(bào)
0/150
提交
取消