This commit is contained in:
CHIEFSOFT\ameye
2023-12-16 13:55:49 -05:00
parent a304eb1e43
commit 4b8a61ae88
+3 -1
View File
@@ -550,7 +550,7 @@ class WrenchApi extends BaseController
try {
log_message('critical', "ENDPOINT TESTING UPLOAD-> ".$endpoint );
$local_out=["test_msg"=>'Yes the upload endpoint was hit********'];
$local_out=["step_msg"=>'Yes the upload endpoint was started ********'];
$call_backend = false; // will be decided after file is saved
//$fl_in=[];
$raw_json = file_get_contents('php://input');
@@ -558,6 +558,8 @@ class WrenchApi extends BaseController
$raw_array["call_backend"] = $call_backend;
$raw_array["system_primary_uploads"] = $this->getSiteConfigurations("system.primary_uploads");
$out = ( new \App\Models\UploadManager() )->reciveUpload($raw_array, $local_out);
$local_out=["step_msg"=>'Yes the upload endpoint was completed ********'];
$call_backend = $out["call_backend"];
$in["message"] = $raw_array["message"] = $out["message"];
$raw_array["file_data"] = $out['file_data'] = $in['file_data'] =""; // no need to carry raw file data anymore - saved or cached ath this point