upload test
This commit is contained in:
@@ -6,16 +6,25 @@ use CodeIgniter\Model;
|
||||
class UploadManager extends Model
|
||||
{
|
||||
|
||||
public $savePath ="//10.0.0.40/wrenchboard/TEST/";
|
||||
public $savePath ="/opt/wrenchboard/TEST"; ////10.0.0.40/wrenchboard/TEST/";
|
||||
public function reciveUpload($in,$out){
|
||||
|
||||
mkdir($this->savePath.rand(10000,999999), 0777, true);
|
||||
mkdir($this->savePath.rand(10000,999999), 0777, true);
|
||||
if (!file_exists($this->savePath.'CONTRACTS')) {
|
||||
mkdir($this->savePath.'CONTRACTS', 0777, true);
|
||||
}
|
||||
|
||||
if (!file_exists($this->savePath.'PROFILE')) {
|
||||
mkdir($this->savePath.'PROFILE', 0777, true);
|
||||
}
|
||||
|
||||
return 0;
|
||||
if (!file_exists($this->savePath.'JOBS')) {
|
||||
mkdir($this->savePath.'JOBS', 0777, true);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user