diff --git a/lib/upload.php b/lib/upload.php index f5f02bd..ed45862 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -133,7 +133,7 @@ function parseIncomingFiles(): array foreach ($incomingFiles as $incomingFile) { if ($incomingFile["error"] == 0 && is_file($incomingFile["tmp_name"])) { $type = explode("/", $incomingFile["type"]); - if (str_starts_with($type, "image")) { + if ($type[0] == "image") { echo "Adding " . $incomingFile["name"]; $imgFname = pathinfo($incomingFile["name"], PATHINFO_FILENAME); $uploadPath = getUploadPath("image", $imgFname);