Upload 1GB files using chunking in PHP

Posted by rjha94 on Stack Overflow See other posts from Stack Overflow or by rjha94
Published on 2010-03-15T14:32:48Z Indexed on 2010/03/16 7:56 UTC
Read the original article Hit count: 424

Filed under:
|
|
|

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.

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 (http://blogs.sun.com/rakeshmenonp/entry/javafx_upload_file ) but I can not find any equivalent of request.getInputStream in PHP.

Increasing browser client_post limits or php.ini upload or max_execution 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.

is there any way to solve this problem using PHP on server side? I would appreciate your replies.

© Stack Overflow or respective owner

Related posts about php

Related posts about large