This commit is contained in:
2024-05-29 12:15:34 +02:00
parent c77cfeab66
commit 05517b9144
3 changed files with 4 additions and 43 deletions

View File

@@ -4,7 +4,6 @@ if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"])) {
$target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file, PATHINFO_EXTENSION));
// Check if file already exists
if (file_exists($target_file)) {