{"record":{"id":"8cc6723cb96b4bcb","repo":"getgrav/grav","slug":"uploaded-file-could-not-be-moved-to-s","errorCode":null,"errorMessage":"Uploaded file could not be moved to %s","messagePattern":"Uploaded file could not be moved to (.+?)","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Framework/Form/FormFlashFile.php","lineNumber":97,"sourceCode":"     * @param string $targetPath\n     * @return void\n     */\n    public function moveTo(string $targetPath): void\n    {\n        $this->validateActive();\n\n        if ($targetPath === '') {\n            throw new InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string');\n        }\n        $tmpFile = $this->getTmpFile();\n        if (null === $tmpFile) {\n            throw new RuntimeException('No temporary file');\n        }\n\n        $this->moved = copy($tmpFile, $targetPath);\n\n        if (false === $this->moved) {\n            throw new RuntimeException(sprintf('Uploaded file could not be moved to %s', $targetPath));\n        }\n\n        $filename = $this->getClientFilename();\n        if ($filename) {\n            $this->flash->removeFile($filename, $this->field);\n        }\n    }\n\n    public function getId(): string\n    {\n        return $this->id;\n    }\n\n    /**\n     * @return string\n     */\n    public function getField(): string\n    {","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Framework/Form/FormFlashFile.php#L79-L115","documentation":"Error \"Uploaded file could not be moved to %s\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Framework/Form/FormFlashFile.php:97 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6040efed04efa69b8209448ed81308e7c24147c2","analyzedAt":"2026-08-17T05:07:31.593Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}