blocked uploads
This commit is contained in:
@@ -548,6 +548,7 @@ class WrenchApi extends BaseController
|
|||||||
if ( $endpoint == 'uploads'){
|
if ( $endpoint == 'uploads'){
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
/*
|
||||||
log_message('critical', "ENDPOINT TESTING UPLOAD-> ".$endpoint );
|
log_message('critical', "ENDPOINT TESTING UPLOAD-> ".$endpoint );
|
||||||
$local_out=["test_msg"=>'Yes the upload endpoint was hit********'];
|
$local_out=["test_msg"=>'Yes the upload endpoint was hit********'];
|
||||||
$call_backend = false; // will be decided after file is saved
|
$call_backend = false; // will be decided after file is saved
|
||||||
@@ -560,6 +561,7 @@ class WrenchApi extends BaseController
|
|||||||
$call_backend = $out["call_backend"];
|
$call_backend = $out["call_backend"];
|
||||||
$in["message"] = $raw_array["message"] = $out["message"];
|
$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
|
$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) {
|
} catch (Exception $e) {
|
||||||
$error = 'Caught exception: '. $e->getMessage();
|
$error = 'Caught exception: '. $e->getMessage();
|
||||||
log_message('critical', "ERROR ENDPOINT TESTING UPLOAD-> ".$error );
|
log_message('critical', "ERROR ENDPOINT TESTING UPLOAD-> ".$error );
|
||||||
|
|||||||
Reference in New Issue
Block a user