test file path

This commit is contained in:
CHIEFSOFT\ameye
2023-06-01 22:24:36 -04:00
parent a6a520a99f
commit dfeb118149
2 changed files with 24 additions and 0 deletions
+3
View File
@@ -469,6 +469,9 @@ class WrenchApi extends BaseController
if ( $endpoint == 'uploads'){
$local_out=["test_msg"=>'Yes the upload endpoint was hit********'];
$call_backend = false; // will be decided after file is saved
$fl_in=[];
$ll = ( new \App\Models\UploadManager() )->reciveUpload($fl_in, $local_out);
}
if (isset($_FILES) && is_array($_FILES) && count($_FILES)>0) {
$raw_array = array_merge($_POST,$_FILES);
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use CodeIgniter\Model;
class UploadManager extends Model
{
public $savePath ="//10.0.0.40/wrenchboard/TEST/";
public function reciveUpload($in,$out){
mkdir($this->savePath.rand(10000,999999), 0777, true);
return 0;
}
}