Fix upload crash
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user