Reputation: 553
My server settings are as below:
still I am getting ERR_CONNECTION_RESET while uploading a file (size > 8MBs). Not even var_dump($_FILES);
is working. Any file size below 8MBs is uploading easily. Not sure where I am wrong. Please suggest.
Although all the server configurations are set still I am getting the same issue.
Upvotes: 2
Views: 6667
Reputation: 3171
In additional to the above, make sure that
LimitRequestBody
in your .htaccess file is set properly or disabled altogether. 0 means unlimited
Docs here
Apache LimitRequestBody Directive
Upvotes: 0
Reputation: 553
In case if you have shared server, you can add php.ini file and add following lines to it.
memory_limit = 1024M
max_input_vars = 2000
upload_max_filesize = 300M
post_max_size = 300M
max_execution_time = 990
This will work fine.
Upvotes: 0
Reputation: 553
The problem in my case is the file I was trying to upload. That PDF file was corrupted. I repaired the PDF file with some online PDF file repairing tool and it worked fine.
Upvotes: 0
Reputation: 2016
Check your php settings for both of these:
upload_max_filesize = 64M
post_max_size = 64M
Upvotes: 2