title: jQuery-File-Upload plugin resetting at 2.1GB
body: <p>I'm trying to implement a simple chunked file uploads for large files using the <strong><a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow noreferrer">jQuery-File-Upload</a></strong> plugin. I cloned the GitHub-repo into a folder and changed my <code>main.js</code> to the following:</p>
  
  <pre><code>$('#fileupload').fileupload({
      maxChunkSize: 10000000,
      add: function (e, data) {
          var that = this;
          $.getJSON('server/php/', {file: data.files[0].name}, function (file) {
              data.uploadedBytes = file &amp;&amp; file.size;
              $.blueimp.fileupload.prototype.options.add.call(that, e, data);
          });
      }
  });
  </code></pre>
  
  <p>as described in the docs. This works fine for files up to 2GB (I can see the chunking in the console and on the server), yet when I try to upload files larger than 2.1GB the following will happen: The last chunk of data will be correctly appended to the existing file <code>myUpload.file</code> and then the script will start writing a new file <code>myUpload.file (1)</code>, starting from scratch, no errors will be thrown, both client- and server-side. The same happens when the second file has reached the size of 2.1GB. The file's progress counter will be reset, whereas the overall progress counter will overflow and tell me that I'm 142% (and counting) done.</p>
  
  <p>I'm running PHP 5.3.5 on the server side.</p>
  
  <p>I already tried fiddling with the settings for <code>max_post_size</code>, <code>upload_max_file_size</code> and <code>memory_limit</code> like described in the plugin's <strong><a href="https://github.com/blueimp/jQuery-File-Upload/wiki/Frequently-Asked-Questions" rel="nofollow noreferrer">FAQ</a></strong> and <strong><a href="https://stackoverflow.com/questions/13574542/4gb-http-file-uploads-using-jquery-file-upload-apache-and-php">this question</a></strong> on SO but didn't have any success. I also found <strong><a href="https://github.com/blueimp/jQuery-File-Upload/issues/1787" rel="nofollow noreferrer">this issue</a></strong> on GitHub that sounds similar, but it got closed without any real input.</p>
  
  <p>Other than fiddling with the <code>php.ini</code> settings I am pretty clueless what to do about this.</p>