問題描述
使用 axios 將用戶圖像上傳到strapi (uploading user image to strapi using axios)
如何解決這個問題?需要幫助</p>
參考解法
方法 1:
Try
axios({
method: 'post',
url: `${strapi}/upload`,
data: JSON.stringify(bodyFormData),
headers: {
'Content‑Type': 'multipart/form‑data',
}
})
方法 2:
Update the key "ref" to be "User" only not "Users"
(by Cj Oyales、user8254635、Banna)