How to configure nginx to support multipart/form-data upload

allenhe nginx-forum at
Wed Mar 31 09:50:33 UTC 2021


Can somebody show the minimal configuration to suppport large file upload
with multipart/form-data Content-Type?
When I upload 8GB file with the following global configs, I will always get
600s timeout with the error: upstream timed out (110: Connection timed out)
while reading response header from upstream

client_body_buffer_size 128k;
client_header_buffer_size   16K;
client_max_body_size 10000m;
client_body_timeout 100s;
client_header_timeout 60s;
proxy_max_temp_file_size 10248m;
proxy_http_version 1.1;
proxy_request_buffering off;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
proxy_buffering on;
proxy_buffer_size 4k;
proxy_buffers 8 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 2m;

Posted at Nginx Forum:,291113,291113#msg-291113

More information about the nginx mailing list