file upload

This commit is contained in:
CHIEFSOFT\ameye
2023-06-02 15:27:07 -04:00
parent db910e9ad9
commit 47782693ba
2 changed files with 29 additions and 12 deletions
+3 -1
View File
@@ -472,8 +472,10 @@ class WrenchApi extends BaseController
//$fl_in=[];
$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);
$raw_array["call_backend"] = $local_out["call_backend"];
$raw_array["message"] = $local_out["message"];
}
if (isset($_FILES) && is_array($_FILES) && count($_FILES)>0) {
$raw_array = array_merge($_POST,$_FILES);