From a086b9b9b75021b014582d9128531435b4721e35 Mon Sep 17 00:00:00 2001 From: speedie Date: Sat, 30 Sep 2023 19:37:53 +0200 Subject: [PATCH] fix syntax error --- upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.php b/upload.php index 276e46c..de26b74 100644 --- a/upload.php +++ b/upload.php @@ -172,7 +172,7 @@ $destinationFile = $uploadDir . basename($_FILES['file']['name']); // rename file if necessary if (!$replaceOriginal || $replaceOriginal == "false") { - if (file_exists($destinationFile) && $) { // rename file to distinguish it from existing file + if (file_exists($destinationFile)) { // rename file to distinguish it from existing file $fileExtension = strtolower(pathinfo(basename($_FILES['file']['name']),PATHINFO_EXTENSION)); if (isset($fileExtension)) { $extension = "." . $fileExtension;