vue-dropzone icon indicating copy to clipboard operation
vue-dropzone copied to clipboard

How to manually enqueue a file

Open stefanknegt opened this issue 5 years ago • 1 comments

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?

stefanknegt avatar Jun 18 '20 08:06 stefanknegt

You could get the dropzone instance on vue-dropzone and call the method directly as:

this.$refs.myVueDropzone.dropzone.enqueueFile(file)

victoreassis avatar Jun 25 '20 19:06 victoreassis