class FileExtensionSecureConstraint

Same name in other branches
  1. 11.x core/modules/file/src/Plugin/Validation/Constraint/FileExtensionSecureConstraint.php \Drupal\file\Plugin\Validation\Constraint\FileExtensionSecureConstraint

File extension secure constraint.

Hierarchy

Expanded class hierarchy of FileExtensionSecureConstraint

File

core/modules/file/src/Plugin/Validation/Constraint/FileExtensionSecureConstraint.php, line 14

Namespace

Drupal\file\Plugin\Validation\Constraint
View 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.