skip to Main Content

I have a form in PHP to upload two images. I can upload files about 400KB perfecty, but when I try to upload files over 900 KB, it throws the message "PR_CONNECT_RESET_ERROR" in Firefox. I tried using Chrome, Opera, but it is the same thing (it do not load the page).
I checked the configuration in php.ini and everything seems correct.

upload_max_size= 8M;

post_max_size= 8M;

memory_limit= 8M;

max_execution_time= 300;

I don’t understand why this happens. Any ideas?

2

Answers


  1. Chosen as BEST ANSWER

    Solved! I checked the logs on the server, and I found the error

    "Requested content-length of 1646786 is larger than the configured limit of 524288, referer: https://web_page.php"

    So, I had to modify the php.conf file to increase the size allowed in the parameter "LimitRequestBody" and restart httpd service.


  2. It is realted to proxy settings of your firefox follow the following procedure
    Horizontall three bars > Options > Network Settings > Auto Detect Proxy Enable > DNS over HTTPs enable and save

    First

    Second

    Third

    Fourth

    Fifth

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search