Skip to content

Commit

Permalink
#904 Uploader file parse params before file body (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
borikinternet authored and rstoenescu committed Sep 23, 2017
1 parent 29138ca commit ac28db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/uploader/QUploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ export default {
xhr = new XMLHttpRequest()
try {
form.append('Content-Type', file.type || 'application/octet-stream')
form.append(this.name, file)
this.additionalFields.forEach(field => {
form.append(field.name, field.value)
})
form.append('Content-Type', file.type || 'application/octet-stream')
form.append(this.name, file)
}
catch (e) {
return
Expand Down

0 comments on commit ac28db2

Please sign in to comment.