Solve issue “client intended to send too large body” in Nginx

I have faced an issue in a web server using Nginx while trying to upload a file using wordpress.

In the nginx error log I saw the error “Client intended to send too large body” in this entry:

$ tail -f /var/log/nginx/*error*.log
2020/09/01 14:31:04 [error] 884#884: *126565 client intended to send too large body: 1195619 bytes, client: 55.173.250.46, server: test.com, request: "POST /wp-json/wp/v2/media?_locale=user HTTP/2.0", host: "test.com", referrer: "https://test.com/wp-admin/post.php?post=2460&action=edit"
Continue reading Solve issue “client intended to send too large body” in Nginx