Look for these settings in php.ini
post_max_size indicates the maximum size of the POST, and since it should be kept in memory, the memory limit should be greater. The memory should contain the current program and all heap variables, including POST.
If you increase only post_max_size within or close to the memory limit and forget to increase memory_limit, the POST size will be limited to a smaller value when the memory is exhausted.
In this example, you can see the default settings.
source share