I 'm using https://rowanwins.github.io/vue-dropzone/docs/dist Vue2-Dropzone to work on uploading file. Everything works fine except calculation of total-upload-progress value goes to 100% and then start from 0% on every file uploads.
I have tried to fix it with this.$refs.myVueDropzone.updateTotalUploadProgress() adding on file added event
. But does not work as expected. Any solution would be highly appreciated.
An old question, but facing the same issue I was forced to find a solution and here it is for everyone interested. I apologize for the long property names :-)
I'm listening to the following 2 events of the vue2-dropzone:
vdropzone-upload-progress
andvdropzone-file-added
I have 3 additional properties in my data object:
I got one computed property:
And then my event listeners, that are called in my template above
Maybe it's possible to accomplish the same with abit less code, but this def works for single file upload as well as for multiple file upload.
I hope I could help someone with this, and help to keep VueJS competetive