Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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. (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. (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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(