title: Upload 1GB files using chunking in PHP
body: <p>I have a web application that accepts file uploads of up to 4 MB. The server side script is PHP and web server is NGINX. Many users have requested to increase this limit drastically to allow upload of video etc.</p>
  
  <p>However there seems to be no easy solution for this problem with PHP. First, on the client side I am looking for something that would allow me to chunk files during transfer. SWFUpload does not seem to do that. I guess I can stream uploads using Java FX (<a href="http://blogs.oracle.com/rakeshmenonp/entry/javafx_upload_file" rel="noreferrer">http://blogs.oracle.com/rakeshmenonp/entry/javafx_upload_file</a>) but I can not find any equivalent of request.getInputStream in PHP. </p>
  
  <p>Increasing browser client_post limits or php.ini upload or <code>max_execution</code> times is not really a solution for really large files (~ 1GB) because maybe the browser will time out and think of all those blobs stored in memory.</p>
  
  <p>Is there any way to solve this problem using PHP on server side? I would appreciate your replies.</p>