1

$_FILES array is empty when file size is bigger than 7.5MB (more or less). The same code is working perfectly on my own server (localhost).

My php.ini:

max_execution_time = 900
max_input_time = 900
post_max_size = 40M 
upload_max_filesize = 20M
memory_limit = 128M

Any idea? I'm going mad... thanks!!!

icedwater
  • 4,701
  • 3
  • 35
  • 50

1 Answers1

2

Change the below settings in php.ini

post_max_size = 100M 
upload_max_filesize = 100M

Maximum file size will be 100 MB if you change as above. Depending on your file size adjust the php.ini.

Important

When you upload large file you will have consider connection time out too. Which is below

max_execution_time = 100

php.ini is depends on your environment. Read more, Similar question

Community
  • 1
  • 1
Techie
  • 44,706
  • 42
  • 157
  • 243
  • Same problem with the configuration that you suggested. phpinfo() returns the correct values for this variables (so php.ini configuration is being read). Thanks again. – user2559342 Jul 08 '13 at 05:41