diff --git a/lib/upload.php b/lib/upload.php index e9cce0f..4b148de 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -195,10 +195,10 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string $stmtfileexists->execute(); if ($stmtfileexists->num_rows > 0){ return $filePath; + echo "whyy"; } else { return false; - echo "why"; } }