vue-upload-multiple-image
vue-upload-multiple-image copied to clipboard
How to access actual Image Object?
Hey,
I'm using axios to POST 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 tried fileList[index].path but it only gives me the path of uploaded image which is not acceptable by api (i face with HTTP400 error which says "expected image but got str")
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)
},