1
Diagnostic step 1
In your NGINX location handling /api, set proxy_request_buffering off; also set proxy_buffering off if upstream expects streaming responses.
Generated Oct 26, 2026, 9:23:15 AM
In your NGINX location handling /api, set proxy_request_buffering off; also set proxy_buffering off if upstream expects streaming responses.
Increase proxy_read_timeout and proxy_send_timeout and client_max_body_size to values above your largest upload size.
Reload NGINX and test with curl --chunked piping a large file; monitor NGINX error log and Node logs for timing or buffer errors.
If using temp file buffering, ensure client_body_temp_path has sufficient space; consider disabling buffering only for upload endpoints.