fix syntax error

This commit is contained in:
Jacob 2023-09-30 19:37:53 +02:00
parent 6f55b8b3f6
commit a086b9b9b7

View file

@ -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;