Error related to max post size, upload max file size, max execution time, max input time or memory limit

If you get one of the errors below during a request:

You have to check the following parameters in your php.ini file:

You will have this issue on several occasions and it's usually because the (default) max_file_size value is small than the size of the file you try to upload.

Solution:

If you facing the issue above, as well as the file size limit, there is also a memory limit to consider. Several variables (from your php.ini file) need consideration…

post_max_size
upload_max_filesize
max_execution_time
max_input_time
memory_limit

Exemple:

This configuration can allow you to upload 17MB file

post_max_size = 128M
upload_max_filesize = 64M
max_execution_time = 120
max_input_time = 240
memory_limit = 512M

Done.


Advanced Solutions (Rarely Used):

If the solution above doesn't solve the issue (that is very rare), you need to consider the settings below: