config usage

This commit is contained in:
CHIEFSOFT\ameye
2023-06-03 19:15:56 -04:00
parent e06055c580
commit d7cf731b91
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -473,7 +473,7 @@ class WrenchApi extends BaseController
$raw_json = file_get_contents('php://input');
$raw_array = json_decode($raw_json, true);
$raw_array["call_backend"] = $call_backend;
$out["system_primary_uploads"] = $this->getSiteConfigurations("system.primary_uploads");
$raw_array["system_primary_uploads"] = $this->getSiteConfigurations("system.primary_uploads");
$out = ( new \App\Models\UploadManager() )->reciveUpload($raw_array, $local_out);
$call_backend = $out["call_backend"];
$raw_array["message"] = $out["message"];
+1 -1
View File
@@ -7,7 +7,7 @@ class UploadManager extends Model
{
public $savePath = WRENCHBOARD_UPLOAD_PATH; //"/opt/wrenchboard/TEST/";
public function reciveUpload($in,$out){
$this->savePath = $in["system_primary_uploads"];
$action = $in["action"];
+1 -1
View File
@@ -2,7 +2,7 @@
function reciveUpload($in, $out){
$savePath = WRENCHBOARD_UPLOAD_PATH; //"/opt/wrenchboard/TEST/";
$savePath = $in["system_primary_uploads"]; // WRENCHBOARD_UPLOAD_PATH; //"/opt/wrenchboard/TEST/";
$action = $in["action"];
+1 -1
View File
@@ -143,7 +143,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$in = flatten(json_decode(file_get_contents('php://input'), true));
//$in = json_decode($raw_json, true);
$in["call_backend"] = $call_backend;
$out["system_primary_uploads"] = getSiteConfigurations($wrenchboard,"system.primary_uploads");
$in["system_primary_uploads"] = getSiteConfigurations($wrenchboard,"system.primary_uploads");
$out = reciveUpload($in, $local_out);
$call_backend = $out["call_backend"];
$in["message"] = $out["message"];