Diagnostic step 1
Immediate test: in your upload location add proxy_request_buffering off; reload nginx and retry chunked upload. Verify success.
Generated Oct 24, 2026, 9:21:01 AM
Immediate test: in your upload location add proxy_request_buffering off; reload nginx and retry chunked upload. Verify success.
If you need buffering for other endpoints, scope proxy_request_buffering off to only the upload route (location /api/upload { proxy_request_buffering off; proxy_pass http://upstream; }).
Alternative: enable client_body_in_file_only on and let NGINX stream to disk: client_body_in_file_only on; client_body_temp_path /var/tmp/nginx-client-body; then proxy_pass.
Ensure client_max_body_size is set in the correct server/location block and reload nginx after changes. Monitor NGINX error.log for 'client intended to send too large body' entries for regressions.
Test with curl using Transfer-Encoding: chunked to confirm behavior: curl -H 'Transfer-Encoding: chunked' --data-binary @largefile http://your-nginx/upload