vue-dropzone
vue-dropzone copied to clipboard
How to manually enqueue a file
In the documentation of Dropzone.js it says you can add files to the queue with enqueueFile(file). However, when I do the following: this.$refs.myVueDropzone.enqueueFile(file) I get the following error: this.$refs.myVueDropzone.enqueueFile is not a function. I already checked and enqueueFile is indeed not listed as a function, nor is there anything similar. How can I manually add a file to the queue?
You could get the dropzone instance on vue-dropzone and call the method directly as:
this.$refs.myVueDropzone.dropzone.enqueueFile(file)