I’ve read on the Nextcloud docs that “post_max_size” and “upload_max_filesize” needed to have the same values:
However, usually it’s recommended not to enter for “post_max_size” a value higher of “memory_limit” because could cause issue.
Doesn’t it make more sense to have a “post_max_size” that is less than or equal to the “memory_limit” and change only the value for “upload_max_filesize”?
To consider that on Plesk (the control panel that I use on my server) I can’t apply these values only for the subdomain where it is located Nextcloud (e.g. nextcloud.mydomain.com) but for the whole hosting (e.g. mydomain.com, othersubdomain.mydomain.com .etc.).
So, is it correct to use these values for a Nextcloud installation with a limit of “2G” for single upload or could I have some problem?
memory_limit = 512M
post_max_size = 2G
upload_max_filesize = 2G