From b8b4a2448ef4792894973c357d1614ba1526a214 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 4 Jun 2023 14:54:21 -0400 Subject: [PATCH] upload path --- www-api/public/svs/user/userve.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www-api/public/svs/user/userve.php b/www-api/public/svs/user/userve.php index ea8a8ffd..d5d4dcda 100755 --- a/www-api/public/svs/user/userve.php +++ b/www-api/public/svs/user/userve.php @@ -137,13 +137,15 @@ $out = array(); if ($_SERVER["REQUEST_METHOD"] == "POST") { if ( $endpoint == 'uploads'){ - $local_out=["test_msg"=>'Yes the upload endpoint was hit******** 777']; + $local_out=["test_msg"=>'Yes the upload endpoint was hit******** 888']; $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; - $in["system_primary_uploads"] = getSiteConfigurations($wrenchboard,"system.primary_uploads"); + $out = getSiteConfigurations($wrenchboard,"system.primary_uploads"); + $in["system_primary_uploads"] = $out["system_primary_uploads"]; + $local_out["system_primary_uploads"] = $in["system_primary_uploads"]; $out = reciveUpload($in, $local_out); $call_backend = $out["call_backend"]; $in["message"] = $out["message"];