public function UploadedFile::isValid in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/File/UploadedFile.php \Symfony\Component\HttpFoundation\File\UploadedFile::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 call to UploadedFile::isValid()
- UploadedFile::move in vendor/
symfony/ http-foundation/ File/ UploadedFile.php - Moves the file to a new location.
File
- vendor/
symfony/ http-foundation/ File/ UploadedFile.php, line 199
Class
- UploadedFile
- A file uploaded through a form.
Namespace
Symfony\Component\HttpFoundation\FileCode
public function isValid() {
$isOk = $this->error === UPLOAD_ERR_OK;
return $this->test ? $isOk : $isOk && is_uploaded_file($this
->getPathname());
}