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

i cant use axios with vue-upload-multiple-image

Open lokize opened this issue 5 years ago • 1 comments
trafficstars

hi, how to upload image to a folder with this plugin?

lokize avatar Oct 08 '20 23:10 lokize

It works using axios.

Use the @upload-success prop to call your own method:

for example:

@upload-success="setImages"

    setImages(formData, index, fileList) {
      const data = fileList[index].path; // <- this is your image data-uri encoded
      
      this.$api.post('/upload', {data});
    },

machour avatar Dec 23 '20 08:12 machour