Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • I created a new FormData, like in your example. But I am not sure how to implement your code in mine. For upload, am am using a library vue-upload-component. I updated the post. Commented Feb 12, 2020 at 14:44
  • I think you don't need upload method then and only needs this in your submitFile() {let form = new MyFormData({whatever: 'another-optional-data', files: this.contract_file.map((upload) => upload.file}); form.post('url...') } Commented Feb 12, 2020 at 15:10
  • @Beusebiu I have updated my answer. Let me know if this works for you Commented Feb 14, 2020 at 7:31
  • 1
    Great! Thank you! Commented Feb 14, 2020 at 8:50