Add file upload

This commit is contained in:
Bruno Rybársky 2024-04-25 10:44:20 +02:00
parent ff0bc7c184
commit 1b8901145d

@ -129,7 +129,7 @@ function parseIncomingFiles(): array
{ {
$incomingFiles = getIncomingFiles(); $incomingFiles = getIncomingFiles();
$success = true; $success = true;
print_r($incomingFiles);
foreach ($incomingFiles as $incomingFile) { foreach ($incomingFiles as $incomingFile) {
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"]);