[Vuejs]-How to upload multiple images/files with Javascript and Axios formdata

0👍

can you check this laracast solution

...
data() {
    return {
        postFormData: new FormData(),
    };
},

methods: {
    onFileChange(event) {
        let files = e.target.files;          
        this.postFormData.append('images[]',files[0]);
        this.createFile(files[0]);
    },
...

Leave a comment