public function UploadedFileInterface::getErrorMessage in Drupal 10
Returns an informative upload error message.
Return value
string The error message regarding a failed upload.
1 method overrides UploadedFileInterface::getErrorMessage()
- FormUploadedFile::getErrorMessage in core/
modules/ file/ src/ Upload/ FormUploadedFile.php - Returns an informative upload error message.
File
- core/
modules/ file/ src/ Upload/ UploadedFileInterface.php, line 35
Class
- UploadedFileInterface
- Provides an interface for uploaded files.
Namespace
Drupal\file\UploadCode
public function getErrorMessage() : string;