Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

demo1 dist plugins.bundle.js is wrong when run in page of dropzone


Uncaught Error: No URL provided.
at new Dropzone (dropzone.js:7938:1)
at dropzone.js:9829:1
at Dropzone.discover (dropzone.js:9841:4)
at Dropzone._autoDiscoverFunction (dropzone.js:10412:1)
at HTMLDocument.init (dropzone.js:10377:1)
Dropzone @ dropzone.js:7938
(anonymous) @ dropzone.js:9829
Dropzone.discover @ dropzone.js:9841
Dropzone._autoDiscoverFunction @ dropzone.js:10412
init @ dropzone.js:10377
dropzone.js:7917 Uncaught Error: Dropzone already attached.
at new Dropzone (dropzone.js:7917:1)
at HTMLDivElement.<anonymous> (dropzone.js:10082:1)
at Function.each (core.js:252:1)
at jQuery.fn.init.each (core.js:87:1)
at jQuery.fn.dropzone (dropzone.js:10081:1)
at demo1 (dropzonejs.js:8:1)
at Object.init (dropzonejs.js:175:1)
at HTMLDocument.<anonymous> (dropzonejs.js:183:1)


to reproduce:
run `npm run localhost`
and open page with `http://localhost:3000/crud/file-upload/dropzonejs.html`


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Check if you are initializing Dropzone multiple times on the same element. Each Dropzone instance should be attached to a unique element. If you have multiple instances, make sure they are targeting different elements or remove any duplicate initializations.


Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(