Add file upload

This commit is contained in:
Bruno Rybársky 2024-04-25 10:43:11 +02:00
parent 93f6b38748
commit ff0bc7c184

@ -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;