title: Delay after uploading large files with Jquery BlueImp uploader
body: <p>I'm able to successfully upload large files (tested up to 8GB) via the BlueImp Jquery Uploader plugin.</p>
  
  <p>My PHP settings are:</p>
  
  <pre><code>upload_max_filesize 8192M
  post_max_size 8192M
  max_execution_time 200
  max_input_time 200
  memory_limit 8192M
  </code></pre>
  
  <p>The problem I'm having is that when large files (2gb or larger) finish uploading, the progress bar hangs on 100% and takes considerable time to "finish".
  I'm not sure what post processing is happening, other than piecing the file chunks together.  </p>
  
  <p>I've tried adjusting the chunk size in the UploadHandler.php file, and it seems to improve things slightly when increased (e.g from 10mb to 500mb chunks) but the delay is still there.  There doesn't seem to be any improvement when disabling chunked uploads altogether (0), and I'm not sure of the potential ramifications of doing this also.</p>
  
  <p>On a 2gb file, the delay is around 20 seconds, but on a 4gb file, it's around 2 minutes.  A 7gb file takes around 3-4 minutes, and sometimes times out.  This leaves the user waiting, unaware of what is happening as the progress bar has finished at 100% by this point.</p>
  
  <p>Does anyone have any insight as to what this might be, or how to go about troubleshooting it?  I suspected that the file in /tmp might be being copied rather than moved, but there's no sign of this in the php file as far as I can tell.  </p>
  
  <p>Boosting the CPU and RAM on my server VM improves things a little, though running the "top" command during this process reveals that CPU and RAM don't appear to be extensively exhausted (0-2%, compared to 90-100% during actual upload).</p>
  
  <p>Many thanks in advance.</p>