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

后端 未结 9 1185
花落未央
花落未央 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:35

    Just use queuecomplete that's what its there for and its so so simple. Check the docs http://www.dropzonejs.com/

    queuecomplete > Called when all files in the queue finished uploading.

          this.on("queuecomplete", function (file) {
              alert("All files have uploaded ");
          });
    

提交回复
热议问题