{"record":{"id":"d63637c92ad14d2b","repo":"getgrav/grav","slug":"invalid-path-provided-for-move-operation-must-be","errorCode":null,"errorMessage":"Invalid path provided for move operation; must be a non-empty string","messagePattern":"Invalid path provided for move operation; must be a non-empty string","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Framework/Form/FormFlashFile.php","lineNumber":87,"sourceCode":"\n        $resource = fopen($tmpFile, 'rb');\n        if (false === $resource) {\n            throw new RuntimeException('No temporary file');\n        }\n\n        return Stream::create($resource);\n    }\n\n    /**\n     * @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","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Framework/Form/FormFlashFile.php#L69-L105","documentation":"Error \"Invalid path provided for move operation; must be a non-empty string\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Framework/Form/FormFlashFile.php:87 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"}