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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -