summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions.http.inc.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/functions.http.inc.php b/functions.http.inc.php
index 1cdbea7..19f3e9e 100644
--- a/functions.http.inc.php
+++ b/functions.http.inc.php
@@ -86,6 +86,22 @@ function getHeaderValue($headerName) {
return $_SERVER[$headerName];
}
+function getFileParameter($parameterName) {
+ return $_FILES[$parameterName];
+}
+
+function getOptionalFileParameter($parameterName, $default = NULL) {
+ $parameter = getFileParameter($parameterName);
+
+ return handleOptionalParameter($parameter, $default);
+}
+
+function getMandatoryFileParameter($parameterName, $message = '', $json = false) {
+ $parameter = getFileParameter($parameterName);
+
+ return handleMandatoryParameter($parameterName, $parameter, $message, $json);
+}
+
function getPostParameter($parameterName) {
return $_POST[$parameterName];
}