Fix upload crash

This commit is contained in:
tokslaw7
2023-12-18 11:19:14 +00:00
parent aac0a65c50
commit 9f751da15a
+4 -2
View File
@@ -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 );