title: dropzone.js - how to do something after ALL files are uploaded
body: <p>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 <em>all</em> the files are uploaded. In this case,</p>
  
  <pre><code>Dropzone.options.filedrop = {
      maxFilesize: 4096,
      init: function () {
          this.on("complete", function (file) {
              doSomething();
          });
      }
  };
  </code></pre>
  
  <p>doSomething() will be called for each file that has been uploaded. How can I call a function after all the files are uploaded?</p>