class FileExtensionSecureConstraint
Same name in other branches
- 10 core/modules/file/src/Plugin/Validation/Constraint/FileExtensionSecureConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileExtensionSecureConstraint
File extension secure constraint.
Hierarchy
- class \Drupal\file\Plugin\Validation\Constraint\FileExtensionSecureConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of FileExtensionSecureConstraint
File
-
core/
modules/ file/ src/ Plugin/ Validation/ Constraint/ FileExtensionSecureConstraint.php, line 14
Namespace
Drupal\file\Plugin\Validation\ConstraintView source
class FileExtensionSecureConstraint extends SymfonyConstraint {
/**
* The error message.
*
* @var string
*/
public string $message = 'For security reasons, your upload has been rejected.';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
FileExtensionSecureConstraint::$message | public | property | The error message. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.