Upload file path

This commit is contained in:
CHIEFSOFT\ameye
2023-12-16 08:14:50 -05:00
parent 8d1d6c2c9c
commit 6c4db88113
+3 -3
View File
@@ -548,7 +548,7 @@ class WrenchApi extends BaseController
if ( $endpoint == 'uploads'){
try {
/*
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
@@ -557,11 +557,11 @@ class WrenchApi extends BaseController
$raw_array = json_decode($raw_json, true);
$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);
/* $out = ( new \App\Models\UploadManager() )->reciveUpload($raw_array, $local_out); */
$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
*/
} catch (Exception $e) {
$error = 'Caught exception: '. $e->getMessage();
log_message('critical', "ERROR ENDPOINT TESTING UPLOAD-> ".$error );