function UploadedFileInterface::isValid

Same name and namespace in other branches
  1. 10 core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::isValid()

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;

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