[GH-ISSUE #1386] Upload issue (can only upload very small files) #6546

Closed
opened 2026-03-01 17:12:57 +03:00 by kerem · 2 comments
Owner

Originally created by @ZTHawk on GitHub (Oct 8, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1386

Describe the bug
I can only upload small files when using a proxy connection to my server.
If I connect directly via IP "10.12.34.56:443" then there are no issues.

I only manage to upload files like 800KB. Files that are 900KB or bigger fail with "NS_ERROR_NET_PARTIAL_TRANSFER" or timeout.

I have tried different values for "client_max_body_size". Setting it to small values does limit the upload size (eg to only 200KB).

My config:

map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}
upstream srvupstream {
    keepalive 32;
    keepalive_timeout 600s;
    server 10.12.34.56:443;
}
server {
    listen 443 ssl http2;
    listen [::]:443 ssl http2;
    server_name srv.mylocaldomain.de;
    ssl_certificate srv.pem;
    ssl_certificate_key srv.key;
    location / {
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        client_max_body_size 1000m;
        proxy_redirect off;
        add_header X-Served-By $host;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Scheme $scheme;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_set_header X-Forwarded-Server $host;
        proxy_pass https://srvupstream$request_uri;
        proxy_cache_bypass $http_upgrade;
    }
}

To Reproduce
Upload a file.

Expected behavior
File can be uploaded.

Screenshots
If applicable, add screenshots to help explain your problem.

Info (please complete the following information):

  • Server OS: Debian 6.8.12
  • Server Arch: x64
  • Nginx UI Version: 2.2.0 (also with older version)
  • Your Browser: Firefox + Chrome

Additional context
Add any other context about the problem here.

Originally created by @ZTHawk on GitHub (Oct 8, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1386 **Describe the bug** I can only upload small files when using a proxy connection to my server. If I connect directly via IP "10.12.34.56:443" then there are no issues. I only manage to upload files like 800KB. Files that are 900KB or bigger fail with "NS_ERROR_NET_PARTIAL_TRANSFER" or timeout. I have tried different values for "client_max_body_size". Setting it to small values does limit the upload size (eg to only 200KB). My config: ``` map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream srvupstream { keepalive 32; keepalive_timeout 600s; server 10.12.34.56:443; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name srv.mylocaldomain.de; ssl_certificate srv.pem; ssl_certificate_key srv.key; location / { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; client_max_body_size 1000m; proxy_redirect off; add_header X-Served-By $host; proxy_set_header Host $host; proxy_set_header X-Forwarded-Scheme $scheme; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Port $server_port; proxy_set_header X-Forwarded-Server $host; proxy_pass https://srvupstream$request_uri; proxy_cache_bypass $http_upgrade; } } ``` **To Reproduce** Upload a file. **Expected behavior** File can be uploaded. **Screenshots** If applicable, add screenshots to help explain your problem. **Info (please complete the following information):** - Server OS: Debian 6.8.12 - Server Arch: x64 - Nginx UI Version: 2.2.0 (also with older version) - Your Browser: Firefox + Chrome **Additional context** Add any other context about the problem here.
kerem 2026-03-01 17:12:57 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Oct 8, 2025):

Try adding the following content to the location block:

proxy_request_buffering off;

proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
send_timeout 600s;

Please note that this issue is not with nginx-ui itself, so I am going to close it.

<!-- gh-comment-id:3380667252 --> @0xJacky commented on GitHub (Oct 8, 2025): Try adding the following content to the location block: ``` proxy_request_buffering off; proxy_connect_timeout 600s; proxy_send_timeout 600s; proxy_read_timeout 600s; send_timeout 600s; ``` Please note that this issue is not with nginx-ui itself, so I am going to close it.
Author
Owner

@ZTHawk commented on GitHub (Oct 8, 2025):

Thank you, this config fixed it.

BTW: the config "proxy_request_buffering" has no syntax highlighting.

<!-- gh-comment-id:3380728491 --> @ZTHawk commented on GitHub (Oct 8, 2025): Thank you, this config fixed it. BTW: the config "proxy_request_buffering" has no syntax highlighting.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#6546
No description provided.