1
votes

I want to file upload a 40Mb file but after some time an error shows ( connection reset). I've already set all values in php.ini What Can I do?

upload_max_filesize = 500M

max_input_time =7200

memory_limit = 128M

max_execution_time = 7200

post_max_size = 500M

1

1 Answers

1
votes

FIRST OF ALL

After editing the php.ini restart apache.

If this not work

Try to put this at the top of your script:

ini_set('memory_limit', '96M');
ini_set('post_max_size', '64M');
ini_set('upload_max_filesize', '64M');

You can check them using phpinfo();