function BrokenPostRequestException::getSize

Same name in other branches
  1. 9 core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php \Drupal\Core\Form\Exception\BrokenPostRequestException::getSize()
  2. 8.9.x core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php \Drupal\Core\Form\Exception\BrokenPostRequestException::getSize()
  3. 10 core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php \Drupal\Core\Form\Exception\BrokenPostRequestException::getSize()

Returns the maximum upload size in bytes.

Return value

int The file size limit in bytes based on the PHP upload_max_filesize and post_max_size.

File

core/lib/Drupal/Core/Form/Exception/BrokenPostRequestException.php, line 46

Class

BrokenPostRequestException
Defines an exception used, when the POST HTTP body is broken.

Namespace

Drupal\Core\Form\Exception

Code

public function getSize() : int {
    return $this->size;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.