Skip to content

Commit

Permalink
fix(QUploader): send files as Blob when sendRaw is true fix: #4000 (#…
Browse files Browse the repository at this point in the history
…4011)

* WIP: dense selection table to reproduce and test the bug #3922

* feat(QUploader): add send-raw QUploader to dev app

* fix(QUploader): send files as Blob in QUploader when sendRaw is true

fix #4000
  • Loading branch information
mountash authored and rstoenescu committed May 1, 2019
1 parent 6b356c3 commit 49cb66d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions quasar/dev/components/form/uploader.vue
Expand Up @@ -105,6 +105,17 @@
</template>
</q-uploader>
<q-uploader v-bind="props" color="yellow" text-color="black" multiple url="http://localhost:4444/upload" />

<q-uploader
v-bind="props"
label="Raw"
send-raw
url="http://localhost:4444/upload"
@added="onAdded"
@removed="onRemoved"
@start="onStart"
@finish="onFinish"
/>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion quasar/src/components/uploader/uploader-xhr-mixin.js
Expand Up @@ -237,7 +237,7 @@ export default {
this.xhrs.push(xhr)

if (sendRaw === true) {
xhr.send(files)
xhr.send(new Blob(files))
}
else {
xhr.send(form)
Expand Down

0 comments on commit 49cb66d

Please sign in to comment.