How To Use FormData() For Uploading File In Vue
问题 So I had asked a question previously, and got a little bit of help as far as logging the results however my results are not making sense. So I have a input <input type="file" name="import_file" v-on:change="selectedFile($event)"> The v-on:change binds the selected file to my data object this.file selectedFile(event) { this.file = event.target.files[0] }, and then I submit the file with this method uploadTodos() { let formData = new FormData(); formData.append('file', this.file); for(var pair