diff --git a/webservices/rest.php b/webservices/rest.php index bc5f20e29..fd7e87523 100644 --- a/webservices/rest.php +++ b/webservices/rest.php @@ -70,9 +70,12 @@ $oCtx = new ContextTag(ContextTag::TAG_REST); $sVersion = utils::ReadParam('version', null, false, 'raw_data'); $sOperation = utils::ReadParam('operation', null); + +//read json_data parameter via as a string (standard behaviour) $sJsonString = utils::ReadParam('json_data', null, false, 'raw_data'); if (empty($sJsonString)){ + //N °3455: read json_data parameter via a file passed by http protocol if(isset($_FILES['json_data']['tmp_name'])) { $sTmpFilePath = $_FILES['json_data']['tmp_name'];