0

I have read somewhere that after PHP 5.4.4 the problem has been fixed for upload files >2GB (but did not see it in changelog). But I am still unable to upload via Chrome 3GB file.

Is anyone experiencing the same problem?

Debian 6, nginx 1.2.7.

Wiggler Jtag
  • 669
  • 8
  • 23

1 Answers1

0

Ok, some info after quickly checking around. In the documentation to post_max_size (which is apparently not in effect after PHP 4.2.3, see http://www.php.net/manual/en/ini.core.php#ini.post-max-size) it is told that memory_limit is also relevant for file uploads. If I get it right this means that PHP will store the full file in memory during the upload. This tells me that some chunking would be smart... If you don't have a lot of RAM available that is. If you have that much RAM available it seems you have to increase the memory_limit, too. Hope this helps a bit.

Christoph Grimmer
  • 4,210
  • 4
  • 40
  • 64
  • hmm I've got 8GB ram and memory_limit is set to 1024M and uploading 2GB file without chunking is not a problem. It can't reserve whole memory limit, cause several concurrent uploads would burn the server. – Wiggler Jtag Mar 08 '13 at 10:50
  • Sorry, then I'm at a loss. – Christoph Grimmer Mar 08 '13 at 10:51
  • nginx client body size, upload file size limit, post size limit, everything is set fine. Following the bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685383 it seems like just a part of php5.4+ is fixed, not all the parts... – Wiggler Jtag Mar 08 '13 at 10:52