The original post: /r/nginx by /u/Emergency-Complex753 on 2024-08-06 13:54:52.

My Setup is: Im On Windows 10.

php - version : PHP Version 7.4.10 /// tested already with 8.

nginx - version : nginx/1.27.0

script that Im using for upload : https://github.com/danielm/uploader/tree/master

All configs in php.ini and nginx.conf are set to maximum upload, like: memory_limit = 512M,max_execution_time = 3600,upload_max_filesize = 16G, and client_max_body_size 4G;

(maybe i need to activate some tricky option)

The problem : i see the big file in temp temp folder(full size), from nginx but it can’t be passed to php, to the final distanation,

I Can’t upload more THAT 2GB 1GB file upload - it’s ok

2.2_bad.raw - Status: Bad Request ( exact size of file 2,14 GB (2.306.867.200 bytes) )

I have already noticed if i replace the server “nginx” with server “Apache” and i keep the same server php-cgi.exe I don’t have the same problem for file upload (all uploads ok)

on my internal network on my NAS , I have ± the same config but im on Linux SYSTEM, (i can paste info from php if needed) , and there i don’t have any limit to upload my files

==> Im wondering if it is possible to do on Windows with (php + nginx) ==> Or Nginx is limited somewhere ?