vue-upload-multiple-image icon indicating copy to clipboard operation
vue-upload-multiple-image copied to clipboard

How to access actual Image Object?

Open omiid-ad opened this issue 3 years ago • 2 comments

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")

omiid-ad avatar Sep 14 '21 07:09 omiid-ad

uploadImageSuccess(formData, index, fileList) {
      console.log(formData.get("file"));
    },

habib-ch avatar Dec 09 '21 12:12 habib-ch

How get files in vuje data objects so than another function can upload

uploadImageSuccess(formData, index, fileList) { this.images.push(formData)

     },

skilljobs avatar Dec 01 '22 12:12 skilljobs