diff --git a/lib/upload.php b/lib/upload.php index 9a20ee8..3b60052 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -198,6 +198,8 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string if ($stmtfileexists->num_rows > 0) { return $filePath; } else { + echo $stmtfileexists->error; + echo $query; return false; } }