mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 09:08:42 +02:00
N°3455: review with Romain (new code documented)
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user