[Vuejs]-Dropzone.js – creating dropzones programmatically returns "dropzone is not a function"

0πŸ‘

βœ…

The value of element is a String ("toUpload") at the point where you are calling element.dropzone(). To use the dropzone method like that, you need to call it on a jQuery element.

You probably meant something like this:

$('.' + element).dropzone( ...

Leave a comment