Welcome! Log In Create A New Profile

Advanced

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

March 31, 2021 05:50AM
Hi,

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;
Subject Author Posted

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

allenhe March 31, 2021 05:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready