This commit is contained in:
Bruno Rybársky 2024-04-26 01:28:52 +02:00
parent e5e4ff8b51
commit cf0d3990c7

@ -133,10 +133,8 @@ function parseIncomingFiles(): array
if ($incomingFile["error"] == 0 && is_file($incomingFile["tmp_name"])) { if ($incomingFile["error"] == 0 && is_file($incomingFile["tmp_name"])) {
$type = explode("/", $incomingFile["type"]); $type = explode("/", $incomingFile["type"]);
if ($type[0] == "image") { if ($type[0] == "image") {
echo "Adding " . $incomingFile["name"];
$imgFname = pathinfo($incomingFile["name"], PATHINFO_FILENAME); $imgFname = pathinfo($incomingFile["name"], PATHINFO_FILENAME);
$uploadPath = getUploadPath("image", $imgFname); $uploadPath = getUploadPath("image", $imgFname);
echo "uppa " . $uploadPath;
if (!empty($uploadPath)) { if (!empty($uploadPath)) {
if (!doImageUpload($incomingFile["tmp_name"], $uploadPath)) { if (!doImageUpload($incomingFile["tmp_name"], $uploadPath)) {
$success = false; $success = false;