function FormUploadedFile::getErrorMessage
Returns an informative upload error message.
Return value
string The error message regarding a failed upload.
Overrides UploadedFileInterface::getErrorMessage
File
- 
              core/modules/ file/ src/ Upload/ FormUploadedFile.php, line 46 
Class
- FormUploadedFile
- Provides a bridge to Symfony UploadedFile.
Namespace
Drupal\file\UploadCode
public function getErrorMessage() : string {
  return $this->uploadedFile
    ->getErrorMessage();
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
