rowanwins / vue-dropzone

A Vue.js component for Dropzone.js - a drag’n’drop file uploads utility with image previews
https://rowanwins.github.io/vue-dropzone/docs/dist
MIT License
2.02k stars 1.4k forks source link

Manually adding a file triggers the vdropzone-queue-complete event #611

Open nklido opened 3 years ago

nklido commented 3 years ago

I'm adding a file manually using the following commands and i see that the vdropzone-queue-complete gets fired

    mounted: () {
      var file = { size: 123, name: "Icon", type: "image/png" };
      var url = "https://myvizo.com/img/logo_sm.png";
      this.$refs.myVueDropzone.manuallyAddFile(file, url);
    }

Is this the expected behavior? I'm using the vdropzone-queue-complete to know when all files have finished uploading.

Edit: Using version 3.6.0