1

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 Answer 1

1

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();

Sign up to request clarification or add additional context in comments.

6 Comments

this in on online server
after 72% they again start from 0% and when they again at 72% error come connection reset
Maybe your hosting has an upload limit, what is your hosting?
plesk. but all the value are set
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.