Is php.ini upload_max_filesize combined?
Use post_max_size
to set the total and upload_max_filesize
for max per file.
Check: https://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize
upload_max_filesize
int
- The maximum size of an uploaded file. When an int is used, the value is measured in bytes. Shorthand notation, as described in this FAQ, may also be used.
And https://www.php.net/manual/en/ini.core.php#ini.post-max-size
post_max_size
int
- Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger thanupload_max_filesize
. Generally speaking,memory_limit
should be larger thanpost_max_size
. When an int is used, the value is measured in bytes. Shorthand notation, as described in this FAQ, may also be used. If the size of post data is greater thanpost_max_size
, the$_POST
and$_FILES
superglobals are empty. This can be tracked in various ways, e.g. by passing the$_GET
variable to the script processing the data, i.e.<form action="edit.php?processed=1">
, and then checking if$_GET['processed']
is set.