title: Dropzone, how to not process queue if errors exist
body: <p>So I have a form with Dropzone, plus another textarea, which I want to submit - if I insert an oversize file or too many I get the "oversize" error in the preview container, etc. BUT the form continues to process upon button clicking the form submit (due to my listener). How can I only submit if there file size is correct for both files and doesn't exceed max file limit? I can't see a Dropzone event for say "no errors" to add a click event listener - I think I'm close but semi stuck now, I have the below:</p>
  
  <pre><code>$(function() {
  
  var minImageWidth = 300, minImageHeight = 300;
  
  Dropzone.options.jobApplicationUpload = {
      autoProcessQueue: false,
      addRemoveLinks: true,
      uploadMultiple: true,
      paramName: 'file',
      previewsContainer: '.dropzone-previews',
      acceptedFiles: '.pdf, .doc, .docx',
      maxFiles: 2,
      maxFilesize: 2, // MB   
      dictDefaultMessage: '',
      clickable: '.fileinput-button',
  
      accept: function(file, done) {            
  
          done();
      },
  
      // The setting up of the dropzone           
      init: function() {
          var myDropzone = this;              
  
          // First change the button to actually tell Dropzone to process the queue.
          this.element.querySelector("button[type=submit]").addEventListener("click", function(e) {
  
              // Make sure that the form isn't actually being sent.
              if(myDropzone.files.length &gt; 0) {
  
                  $('#job-application-container').hide();
                  $('#spinner-modal').modal('show');
                  $('#spinner-modal p').html('&lt;b&gt;Sending your application,&lt;/b&gt; please wait...&lt;/p&gt;');  
  
                  e.preventDefault();
                  e.stopPropagation();
                  myDropzone.processQueue(); 
              }
  
          });
  
          this.on("success", function(files, response) {
  
  
          // Gets triggered when the files have successfully been sent.
          // Redirect user or notify of success.
  
              $('#job-application-container').hide();
              console.log('okay' + response);
              localStorage['success'] = 'test';
              location.reload();
  
          }); 
  
  
  
      }
  
  };
  </code></pre>
  
  <p>});</p>