I have 2 problems:
A. Having to figure out what chunk size to use when coding (instead of discovery at/near runtime)
B. After figuring out, it still does not work, I have to reduce my chunk size further by about 2000 bytes
- On Nginx + PHP FPM, all using default values, Nginx has 1M for
client_max_body_size
- However, I have to reduce my chunk size by ~2000 bytes depending on the length of the filename or face 413
- So, what are we doing is to set
client_max_body_size as 2M and upload_max_filesize as 1M
- Would be great if there is a way to line up
client_max_body_size and PHP's upload_max_filesize, i.e. set 1M for both and it works
- Then a piece of code would work seamlessly across all servers
I have 2 problems:
A. Having to figure out what chunk size to use when coding (instead of discovery at/near runtime)
B. After figuring out, it still does not work, I have to reduce my chunk size further by about 2000 bytes
client_max_body_sizeclient_max_body_sizeas 2M andupload_max_filesizeas 1Mclient_max_body_sizeand PHP'supload_max_filesize, i.e. set 1M for both and it works