Open omiid-ad opened 3 years ago
uploadImageSuccess(formData, index, fileList) {
console.log(formData.get("file"));
},
How get files in vuje data objects so than another function can upload
uploadImageSuccess(formData, index, fileList) { this.images.push(formData)
},
Hey, I'm using
axios
toPOST
my uploaded images to an API which receives an array of images. but i do not know how to upload actual image file to api. i triedfileList[index].path
but it only gives me the path of uploaded image which is not acceptable by api (i face withHTTP400
error which says"expected image but got str"
)