q-uploader: multiple upload on the same file
-
Is it possible to upload the same file “x” times ?
I tried this, but it only load the file once :<template> <q-page class="flex flex-center"> <q-uploader ref="fileUploader" url="http://localhost:4444/upload" @added="addedFile" hide-upload-button /> </q-page> </template> <script> export default { name: 'PageIndex', methods: { addedFile (files) { this.uploadFile() }, uploadFile () { // trying to upload the sameFile 5 times let i = 0 while (i < 5) { this.$refs.fileUploader.upload(); i += 1 } } } </script>
Does someone have any suggestions?