javascript - How to handle DropZone.js file upload completed -
after file uploaded, want able move out of dropzone html element , li item.
html structur
<div class="dropzone"> here.jpg </div> <ul> <li>to here.jpg</li> </ul>
js
$(function() { // event listeners var mydropzone = new dropzone("div#mydrop", { url: "/images/upload/"}); //not working mydropzone.on("addedfile", function(file) { file.previewelement.addeventlistener("click", function() { }); //feedback dropzone.options.mydropzone = { init: function() { this.on("success", function(file, responsetext) { //do stuff }); this.on("complete", function(file) { //do stuff }); this.on("addedfile", function(file) { //do stuff }); this.on("uploadprogress", function(file) { //do stuff }); } }; });
add complete function:
mydropzone.removefile(file);
Comments
Post a Comment