From ff0bc7c184451da96ce08ce5aaf0bb7038dde712 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 25 Apr 2024 10:43:11 +0200 Subject: [PATCH] Add file upload --- lib/upload.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/upload.php b/lib/upload.php index 6c7aa5d..6cd2b9a 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -134,8 +134,10 @@ function parseIncomingFiles(): array if ($incomingFile["error"] == 0 && is_file($incomingFile["tmp_name"])) { $type = explode("/", $incomingFile["type"]); if ($type == "image") { + echo "Adding " . $incomingFile["name"]; $imgFname = pathinfo($incomingFile["name"], PATHINFO_FILENAME); $uploadPath = getUploadPath("image", $imgFname); + echo "uppa " . $uploadPath; if (!empty($uploadPath)) { if (!doImageUpload($incomingFile["tmp_name"], $uploadPath)) { $success = false;