title: Limit total upload size of all the files in uploadify
body: <p>I'm using uploadify to upload files. I would like to throw error and stop submitting/uploading the form if the total upload size of all files are greater than 10MB.</p>
  
  <p>I browsed the document of uploadify <a href="http://www.uploadify.com/documentation/" rel="nofollow">http://www.uploadify.com/documentation/</a> and found "fileSizeLimit" which limits file size of a single file. But I want total upload size of all files together.</p>
  
  <p>Can some one suggest me how to do this?? Below is my code</p>
  
  <pre><code>&lt;script&gt;
  $(function() {
  $('#file_upload').uploadify({    
      'formData' : {
          'timestamp' : '&lt;?php echo $timestamp;?&gt;',
          'token'     : '&lt;?php echo md5('unique_salt' . $timestamp);?&gt;'
      },
      'swf'      : 'uploadify.swf',
      'uploader' : 'uploadify.php',
  
      'auto'     : false,        
      'buttonText' : 'Upload Document',
      'fileTypeExts' : '&lt;?php echo $allowedFileExts; ?&gt;',
      'fileSizeLimit' : '10MB',
      'onQueueComplete' : function(event,data) {            
          document.someForm.submit();
          document.someForm.reset();
      }
  });
  });
  &lt;/script&gt;
  &lt;form id="someForm" name="someForm" action="test.php" method="post" enctype="multipart/form-data"&gt;
  &lt;input id="file_upload" name="file_upload" type="file" multiple="true"/&gt;
  &lt;a href="javascript:$('#file_upload').uploadify('cancel','*');"&gt;Clear Queue&lt;/a&gt;
  &lt;input onclick="$('#file_upload').uploadify('upload','*')" type="button" id="submitbtn" name="submitbtn" value="Submit" /&gt;
  &lt;div id="queue"&gt;&lt;/div&gt;
  &lt;/form&gt;   
  </code></pre>