You are here

public function UploadedFileInterface::isValid in Drupal 10

Returns whether the file was uploaded successfully.

Return value

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

1 method overrides UploadedFileInterface::isValid()
FormUploadedFile::isValid in core/modules/file/src/Upload/FormUploadedFile.php
Returns whether the file was uploaded successfully.

File

core/modules/file/src/Upload/UploadedFileInterface.php, line 27

Class

UploadedFileInterface
Provides an interface for uploaded files.

Namespace

Drupal\file\Upload

Code

public function isValid() : bool;