post_max_size:
- Sets max size of post data allowed. This setting also affects file upload
- To upload large files, this value must be larger than upload_max_filesize
- Generally speaking, memory_limit should be larger than post_max_size.
- PHP Default: 8M
upload_max_filesize:
- The maximum size of an uploaded file
- PHP Default: 2M
memory_limit > post_max_size > upload_max_filesize
PHP Default: 128M > 8M > 2M
By default, post_max_size should be 4 times greater than upload_max_filesize.
In turn
memory_limit should be 16 times greater than post_max_size