title: Restrict the file type and total size of files uploded using drag and drop option of jquery fileupload plugin
body: <p>I am new to Jquery and I am using <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">blueimp jquery.fileupload plugin</a>  to upload files . In my application there is restriction for only certain type of file like .class, .java etc. </p>
  
  <p>so how to specify to restrict only certain type of files and allow all the other types of file to upload ? also i have to specify the maximum size of all the files getting uploded not individual size but the sum of sizes of all the file should be restricted.</p>
  
  <p>I have implemented these two things for add file button in that plugin.but i am not able to implement this with drag and drop option provided in that plugin.</p>
  
  <p>Code is like :</p>
  
  <pre><code>$('#fileupload').fileupload('option', {
              disableImageResize: false,
              maxFileSize: 5000000,
              acceptFileTypes: /(\.|\/)(gif|jpe?g|png|txt)$/i
    });
  </code></pre>
  
  <p>So it is like max size for each item and file types which are accepted.
  I want to specify the type to be restricted and maximum size of all files tobe restricted</p>