
| Current Path : /var/www/html/stolberg/web/core/modules/file/src/Validation/Constraint/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/stolberg/web/core/modules/file/src/Validation/Constraint/UploadedFileConstraint.php |
<?php
declare(strict_types=1);
namespace Drupal\file\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* A constraint for UploadedFile objects.
*/
class UploadedFileConstraint extends Constraint {
/**
* The upload max size. Defaults to checking the environment.
*
* @var int|null
*/
public ?int $maxSize;
/**
* The upload ini size error message.
*
* @var string
*/
public string $uploadIniSizeErrorMessage = 'The file %file could not be saved because it exceeds %maxsize, the maximum allowed size for uploads.';
/**
* The upload form size error message.
*
* @var string
*/
public string $uploadFormSizeErrorMessage = 'The file %file could not be saved because it exceeds %maxsize, the maximum allowed size for uploads.';
/**
* The upload partial error message.
*
* @var string
*/
public string $uploadPartialErrorMessage = 'The file %file could not be saved because the upload did not complete.';
/**
* The upload no file error message.
*
* @var string
*/
public string $uploadNoFileErrorMessage = 'The file %file could not be saved because the upload did not complete.';
/**
* The generic file upload error message.
*
* @var string
*/
public string $uploadErrorMessage = 'The file %file could not be saved. An unknown error has occurred.';
}