From 8e51278f4123a93ae5b748ba8832e7c7ad83fbf8 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 25 Apr 2024 10:46:52 +0200 Subject: [PATCH] Add file upload --- lib/upload.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/upload.php b/lib/upload.php index b63a919..729ce3d 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -131,6 +131,7 @@ function parseIncomingFiles(): array $success = true; print_r($incomingFiles); foreach ($incomingFiles as $incomingFile) { + echo "a:" . ($incomingFile["error"] == 0 ? "A" : "B") . "b:" . (is_file($incomingFile["tmp_name"]) ? "A" : "B"); if ($incomingFile["error"] == 0 && is_file($incomingFile["tmp_name"])) { $type = explode("/", $incomingFile["type"]); if ($type == "image") {