aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/ws_functions.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index a60dfc01e..16d2f7dd4 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -1423,6 +1423,11 @@ function ws_images_addSimple($params, &$service)
{
return new PwgError(405, "This method requires HTTP POST");
}
+
+ if (!isset($_FILES['image']))
+ {
+ return new PwgError(405, "The image (file) parameter is missing");
+ }
$params['image_id'] = (int)$params['image_id'];
if ($params['image_id'] > 0)