getgrav/grav · error · RuntimeException
No temporary file
Error message
No temporary file
What it means
Error "No temporary file" thrown in getgrav/grav.
Source
Thrown at system/src/Grav/Framework/Form/FormFlashFile.php:72
$this->upload['size'] = $tmpFile && $this->isOk() ? filesize($tmpFile) : 0;
}
}
/**
* @return StreamInterface
*/
public function getStream(): StreamInterface
{
$this->validateActive();
$tmpFile = $this->getTmpFile();
if (null === $tmpFile) {
throw new RuntimeException('No temporary file');
}
$resource = fopen($tmpFile, 'rb');
if (false === $resource) {
throw new RuntimeException('No temporary file');
}
return Stream::create($resource);
}
/**
* @param string $targetPath
* @return void
*/
public function moveTo(string $targetPath): void
{
$this->validateActive();
if ($targetPath === '') {
throw new InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string');
}
$tmpFile = $this->getTmpFile();
if (null === $tmpFile) {View on GitHub (pinned to 6040efed04)
When it happens
Trigger: Thrown at system/src/Grav/Framework/Form/FormFlashFile.php:72 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of getgrav/grav@6040efed04 (2026-08-17).
Data as JSON: /api/errors/8c451418b651432f.
Report an issue: GitHub.