svelte-dropzone
svelte-dropzone copied to clipboard
Your example from Readme.md is not working out of the box
the callback functions are not called and you use <Dropzone/> Tag which is wrong.
It should be
import Dropzone from "dropzone"; this line is missing in your npm published package! oh-buddy
import Dropzone from "dropzone"; this line is missing in your npm published package! oh-buddy
Exactly. Error Dropzone is not defined
After reading dropzone doc, I figured out that we need manually download dropzone.min.js and source it in your index.html. This works, but another warning occurs, from Dropzone itself: Dropzone already attached.