This commit is contained in:
as2252258@163.com
2021-09-08 00:37:58 +08:00
parent c07cfca3ae
commit b71ccf7a58
+4 -1
View File
@@ -61,10 +61,13 @@ class Uploaded implements UploadedFileInterface
/**
* @param string $targetPath
* @return bool
*/
public function moveTo($targetPath)
public function moveTo($targetPath): bool
{
@move_uploaded_file($this->tmp_name, $targetPath);
return file_exists($targetPath);
}
/**