Post upload data
This commit is contained in:
@@ -505,9 +505,15 @@ class WrenchApi extends BaseController
|
||||
'URI' => $uri,
|
||||
]);
|
||||
}
|
||||
|
||||
// echo "EXYTACT INPUT DATA HERE";
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$raw_array = json_decode($raw_json, true);
|
||||
|
||||
$local_out =[];
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") { // if upload lets modify all the data
|
||||
if ( $endpoint == 'uploads'){
|
||||
log_message('critical', "ENDPOINT TESTING UPLOAD-> ".$endpoint );
|
||||
$local_out=["test_msg"=>'Yes the upload endpoint was hit********'];
|
||||
$call_backend = false; // will be decided after file is saved
|
||||
//$fl_in=[];
|
||||
@@ -524,10 +530,6 @@ class WrenchApi extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
// echo "EXYTACT INPUT DATA HERE";
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$raw_array = json_decode($raw_json, true);
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
|
||||
log_message('critical', "Enpoint LOC2 HERE -> ".$endpoint );
|
||||
$get_param = $_GET['reqData'] ?? null;
|
||||
|
||||
Reference in New Issue
Block a user