title: How validate max number of files before upload?
body: <p>Hi I'm using the upload file plugin and I need to validate the number of files added before upload the file...Something like this</p>
  
  <pre><code>        $('#fileupload').bind('fileuploadadd', function (e, data) {
          filestoupload++;
          var numOfDivs = $('.request').size();
          if (numOfDivs &lt; filestoupload) {
              upload = false; // Is just an example.
          }
      });
  </code></pre>