N°3455: review with Romain (new code documented)

This commit is contained in:
odain
2020-12-14 17:07:15 +01:00
parent 7f0e8abc09
commit 59e9cdbfe6

View File

@@ -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'];