Upload engine

This commit is contained in:
CHIEFSOFT\ameye
2023-06-03 16:42:11 -04:00
parent 871c42bb4a
commit 2552160a71
7 changed files with 22 additions and 16 deletions
+3 -3
View File
@@ -473,9 +473,9 @@ class WrenchApi extends BaseController
$raw_json = file_get_contents('php://input');
$raw_array = json_decode($raw_json, true);
$raw_array["call_backend"] = $call_backend;
$ll = ( new \App\Models\UploadManager() )->reciveUpload($raw_array, $local_out);
$call_backend = $local_out["call_backend"];
$raw_array["message"] = $local_out["message"];
$out = ( new \App\Models\UploadManager() )->reciveUpload($raw_array, $local_out);
$call_backend = $out["call_backend"];
$raw_array["message"] = $out["message"];
}
if (isset($_FILES) && is_array($_FILES) && count($_FILES)>0) {
$raw_array = array_merge($_POST,$_FILES);