function InputStreamUploadedFile::isValid

Returns whether the file was uploaded successfully.

Return value

bool TRUE if the file has been uploaded with HTTP and no error occurred.

Overrides UploadedFileInterface::isValid

File

core/modules/file/src/Upload/InputStreamUploadedFile.php, line 62

Class

InputStreamUploadedFile
An uploaded file from an input stream.

Namespace

Drupal\file\Upload

Code

public function isValid() : bool {
  throw new \BadMethodCallException(__METHOD__ . ' not implemented');
}

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