fix syntax error
This commit is contained in:
parent
6f55b8b3f6
commit
a086b9b9b7
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue