function UploadedFile::validateActive
Throws
RuntimeException if is moved or not ok
2 calls to UploadedFile::validateActive()
- UploadedFile::getStream in vendor/
guzzlehttp/ psr7/ src/ UploadedFile.php - Retrieve a stream representing the uploaded file.
- UploadedFile::moveTo in vendor/
guzzlehttp/ psr7/ src/ UploadedFile.php - Move the uploaded file to a new location.
File
-
vendor/
guzzlehttp/ psr7/ src/ UploadedFile.php, line 137
Class
Namespace
GuzzleHttp\Psr7Code
private function validateActive() : void {
if (false === $this->isOk()) {
throw new RuntimeException('Cannot retrieve stream due to upload error');
}
if ($this->isMoved()) {
throw new RuntimeException('Cannot retrieve stream after it has already been moved');
}
}