Add file upload
This commit is contained in:
parent
1b8901145d
commit
8e51278f41
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user