UploadedFileConstraint::$uploadErrorMessage

Same name in other branches
  1. 11.x core/modules/file/src/Validation/Constraint/UploadedFileConstraint.php \Drupal\file\Validation\Constraint\UploadedFileConstraint::uploadErrorMessage

The generic file upload error message.

Type: string

File

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

Class

UploadedFileConstraint
A constraint for UploadedFile objects.

Namespace

Drupal\file\Validation\Constraint

Code

public string $uploadErrorMessage = 'The file %file could not be saved. An unknown error has occurred.';

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