skip to Main Content

Im actually confused both upload_max_size and post_max_size.

I searched on the google. but all the results show about how to increase size. but my question is what is post_max_size.

2

Answers


  1. 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. 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 than post_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. , and then checking if $_GET[‘processed’] is set.

    Just literately from PHP.net

    Login or Signup to reply.
  2. According to official PHP manual:

    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. 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 than post_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. , and then checking if
    $_GET[‘processed’] is set.

    https://www.php.net/manual/en/ini.core.php#ini.post-max-size

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search