title: jquery multiple file upload limit number of files not working
body: <p>Jquery multiple file upload with ajax.  </p>
  
  <pre><code>option : {  
      limitMultiFileUploads : 3    
  }
  </code></pre>
  
  <p>is not working for jquery file upload.</p>
  
  <p>This is what i did :</p>
  
  <pre><code>$(function() {        
          $('#attachUpload').fileupload({            
              dataType: 'json',
              limitConcurrentUploads: 1,
              option:
                  {
                      maxFileSize: 40000,
                      maxNumberOfFiles: 2
                  },
              start: function(e) {
                  $('.btn-sent').unbind('click'); // important - remove all event handlers
              },
              done: function(e, data) {
                  var data = $.parseJSON(data._response.jqXHR.responseText);
                  doneflag--;
                  if (doneflag == 0) {                                              
                          $('#frmCompose').submit();                       
                  }
              },
              submit: function(e, data) {                
                  data.formData = setFormData();                
              },
              add: function(e, data) {
              }
  });
  </code></pre>
  
  <p>but filesize limit and number of files limit not working can anyone help please.</p>