Upload engine

This commit is contained in:
CHIEFSOFT\ameye
2023-06-03 16:42:11 -04:00
parent 871c42bb4a
commit 2552160a71
7 changed files with 22 additions and 16 deletions
+4 -4
View File
@@ -137,13 +137,13 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
if ( $endpoint == 'uploads'){
$local_out=["test_msg"=>'Yes the upload endpoint was hit******** 777'];
$call_backend = false; // will be decided after file is saved
//$out=[];
$in = flatten(json_decode(file_get_contents('php://input'), true));
//$in = json_decode($raw_json, true);
$in["call_backend"] = $call_backend;
$ll = reciveUpload($in, $local_out);
$call_backend = $local_out["call_backend"];
$in["message"] = $local_out["message"];
$out = reciveUpload($in, $local_out);
$call_backend = $out["call_backend"];
$in["message"] = $out["message"];
}
else{