From 8d1d6c2c9cef5af82c2c13fabcad0a4c7b9bf63a Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 16 Dec 2023 08:08:54 -0500 Subject: [PATCH] blocked uploads --- www-api/app/Controllers/WrenchApi.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index a604852e..5e849ecf 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -548,6 +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 @@ -560,6 +561,7 @@ class WrenchApi extends BaseController $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 );