UploadedFileConstraint::$maxSize

Same name and namespace in other branches
  1. 10 core/modules/file/src/Validation/Constraint/UploadedFileConstraint.php \Drupal\file\Validation\Constraint\UploadedFileConstraint::maxSize
  2. 11.x core/modules/file/src/Validation/Constraint/UploadedFileConstraint.php \Drupal\file\Validation\Constraint\UploadedFileConstraint::maxSize

The upload max size. Defaults to checking the environment.

Type: maxSize

File

core/modules/file/src/Validation/Constraint/UploadedFileConstraint.php, line 18

Class

UploadedFileConstraint
A constraint for UploadedFile objects.

Namespace

Drupal\file\Validation\Constraint

Code

public ?int $maxSize = NULL;

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