Upload multiple file with vue js and axios
问题 I am trying to upload multiple images using vuejs and axios but on server side i am getting empty object. I added multipart/form-data in header but still empty object. submitFiles() { /* Initialize the form data */ let formData = new FormData(); /* Iteate over any file sent over appending the files to the form data. */ for( var i = 0; i < this.files.length; i++ ){ let file = this.files[i]; console.log(file); formData.append('files[' + i + ']', file); } /*`enter code here` Make the request to