DropZone will not display upload area

Posted 2 years ago by keevitaja


I cannot get Dropzone working and i am pretty much sure it is just me. I used the dropzone npm package and installed it.

In app.js i have

const Dropzone = require('dropzone')

const AdvertUpload = new Dropzone('div#dropzone', { url: '/file/post'})

In view file <div id="dropzone"></div> and no js errors are displayed.

If i remove the id from div, i get dropzone error

What the heck am i doing wrong?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.