From 74f1c04022328280b996dde0b7089e13d96acf70 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Sat, 22 Apr 2023 13:15:14 +0300 Subject: edit lesson: media handling --- core/classes/Request.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/classes') diff --git a/core/classes/Request.php b/core/classes/Request.php index bc322a1..89928f9 100644 --- a/core/classes/Request.php +++ b/core/classes/Request.php @@ -21,9 +21,11 @@ class Request public $AGENT; // Client's User Agent - public $GET = []; + public $GET = []; // $_GET array - public $POST = []; + public $POST = []; // $_POST array + + public $FILES = []; // $_FILES array public $SIGNATURE; // user/client's device signature @@ -48,6 +50,8 @@ class Request // * If (for any reason) you requide $_GET sanitization // enable it later on the method's code + $this->FILES = $_FILES; // TODO: sanitize the files array + // $this->INTERFACE = php_sapi_name(); $this->AGENT = $_SERVER['HTTP_USER_AGENT'] ?? 'unknown'; -- cgit v1.2.3