diff --git a/lib/upload.php b/lib/upload.php index 3cb33c8..1fa759b 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -194,11 +194,11 @@ function fileExists(int $fileId, bool $onlyMine = true): bool|string $stmtfileexists->bind_result($filePath); $stmtfileexists->execute(); if ($stmtfileexists->num_rows > 0){ - echo "preco1"; return $filePath; } else { - echo "preco2"; + echo $stmtfileexists->error; + echo $query; return false; } }