summaryrefslogtreecommitdiff
path: root/app/Core/Request.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Request.php')
-rw-r--r--app/Core/Request.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Core/Request.php b/app/Core/Request.php
index 1eff66fa..d0fcdb8e 100644
--- a/app/Core/Request.php
+++ b/app/Core/Request.php
@@ -103,6 +103,18 @@ class Request
}
/**
+ * Get the path of an uploaded file
+ *
+ * @access public
+ * @param string $name Form file name
+ * @return string
+ */
+ public function getFilePath($name)
+ {
+ return isset($_FILES[$name]['tmp_name']) ? $_FILES[$name]['tmp_name'] : '';
+ }
+
+ /**
* Return true if the HTTP request is sent with the POST method
*
* @access public