diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index 31bd267a..ca90a1e1 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -563,8 +563,10 @@ 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 - + //$raw_array["file_data"] = $out['file_data'] = $in['file_data'] =""; // no need to carry raw file data anymore - saved or cached ath this point + if (is_array($raw_array) && array_key_exists("file_data", $raw_array)) unset($raw_array["file_data"]); + if (is_array($out) && array_key_exists("file_data", $out)) unset($out["file_data"]); + if (is_array($int) && array_key_exists("file_data", $in)) unset($in["file_data"]); } catch (Exception $e) { $error = 'Caught exception: '. $e->getMessage(); log_message('critical', "ERROR ENDPOINT TESTING UPLOAD-> ".$error );