Reduce memory consumption in PHP while handling uploads by php input Reduce memory consumption in PHP while handling uploads by php input ajax ajax

Reduce memory consumption in PHP while handling uploads by php input


There's a hack, which is about faking content type header, turning it from application/octet-stream to multipart/form-data. It will stop PHP from populating $HTTP_RAW_POST_DATA. More details https://github.com/valums/file-uploader/issues/61.


Have been in the same shoe before and this is what i did split the files into different chunks during the upload process.

I good example is using [1]: http://www.plupload.com/index.php "pulpload" or trying using a java applet http://jupload.sourceforge.net which also has resume capability when there are network issues etc.

The most important thing is that you want your files uploaded via a web browser there is noting stopping you from doing so in chunks


Why don't you try using flash to upload huge files. For example, you can try swfupload, which has good support for PHP.