I have a dropzone that works great. I also have a few elements as additional "targets" where the user can drop files.
Problem is, I don't know how to "forward" the dropped files from the target element to the dropzone for upload. I'd prefer something such as the following code sample over spawning multiple dropzones, as that feels very hacky in this scenario, given that in the future the number of target-drop elements may be 10 or 15+.
"drop": function(e) {
e.preventDefault();
myDropzone.upload(e.originalEvent.dataTransfer); // Any way to do something like this?
}
from $("body").on("drop") with Dropzone.js
No comments:
Post a Comment