Diagnostic step 1
In the relevant server/location block, set: proxy_http_version 1.1; chunked_transfer_encoding on; proxy_request_buffering off;
Generated Oct 26, 2026, 9:23:15 AM
In the relevant server/location block, set: proxy_http_version 1.1; chunked_transfer_encoding on; proxy_request_buffering off;
Ensure client_max_body_size is set in the same context that handles the request (server or location) and reload nginx (nginx -t && nginx -s reload).
Reproduce upload with curl using --http2 and --chunked-transfer to verify successful proxied streaming: curl --http2 -X POST -H 'Transfer-Encoding: chunked' --data-binary @largefile https://yourdomain/upload
If a WAF or extra modules are present, temporarily disable them to confirm they are not enforcing body rules; re-enable after tests.
Rollback by restoring previous nginx config and reloading if the change causes unexpected side effects.