Image Uploading Size Show Exceeding Though It's Less

I guess the new update added a hint about fixing this, so here is the full guide for those who face the same issue… it’s all about nginx:

1. Go to nginx folder:

cd /etc/nginx

2. Add this line to your nginx.conf file:

http {
    ...
    client_max_body_size 4M;
}

This will allow nginx to accept files with a max size of 4 megabytes.

3. Restart nginx:

  • If you’re paranoid like me use run systemctl restart nginx
  • Or simply send the nginx restart signal by running nginx -s reload
2 Likes