diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ws_functions.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index ef592b3a4..2fff3c88a 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -1419,6 +1419,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) |