Returns whether the file was uploaded successfully.
@api
Return value
Boolean True if no error occurred during uploading
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/UploadedFile.php, line 173
Class
- UploadedFile
- A file uploaded through a form.
Namespace
Symfony\Component\HttpFoundation\File
Code
public function isValid() {
return $this->error === UPLOAD_ERR_OK;
}