Version 0.9.5 beta - added $_FILES to the controller in order to have this super global accessible.

This commit is contained in:
Stephan Kasdorf
2020-09-21 22:17:49 +02:00
parent 112c00ff1b
commit b297a2e40a

View File

@@ -187,4 +187,21 @@ class Controller extends View
return $_SERVER;
}
}
/**
* @param string $param
* @param bool $params
* @return string|array
*/
public function getFiles( string $param, bool $params = false )
{
if($param!="")
{
return $_FILES[$param];
}
elseif($params)
{
return $_FILES;
}
}
}