dropzone.js - how to do something after ALL files are uploaded

后端 未结 9 1165
花落未央
花落未央 2020-12-13 05:48

I am using dropzone.js for my drag-drop file upload solution. I am stuck at something where I need to call a function after all the files are uploaded. In this case

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-13 06:39

    this.on("totaluploadprogress", function(totalBytes, totalBytesSent){
    
    
                        if(totalBytes == 100) {
    
                            //all done! call func here
                        }
                    });
    

提交回复
热议问题