From ac28db26dbb88b18abacfd021fdeaeebada4b0ca Mon Sep 17 00:00:00 2001 From: Dmitriy Borisov Date: Sat, 23 Sep 2017 03:44:27 +0300 Subject: [PATCH] #904 Uploader file parse params before file body (#905) --- src/components/uploader/QUploader.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/uploader/QUploader.vue b/src/components/uploader/QUploader.vue index 21447ae14e6..468abd084da 100644 --- a/src/components/uploader/QUploader.vue +++ b/src/components/uploader/QUploader.vue @@ -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