add new function in File Upload service
This commit is contained in:
parent
1369865cc4
commit
c81e4c4694
|
@ -105,7 +105,7 @@ class Upload extends AbstractEventManager implements ServiceManagerAwareInterfac
|
||||||
if(!empty($childDir))
|
if(!empty($childDir))
|
||||||
$this->setChildDir($childDir);
|
$this->setChildDir($childDir);
|
||||||
|
|
||||||
$this->MakeChildDir($childDir);
|
//$this->MakeChildDir($childDir);
|
||||||
|
|
||||||
if(!empty($dateDirModel))
|
if(!empty($dateDirModel))
|
||||||
$this->setDatePathMode($dateDirModel);
|
$this->setDatePathMode($dateDirModel);
|
||||||
|
@ -176,9 +176,14 @@ class Upload extends AbstractEventManager implements ServiceManagerAwareInterfac
|
||||||
return $this->uploadPath;
|
return $this->uploadPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function setChildDir($dir = ""){
|
public function setChildDir($dir = ""){
|
||||||
$this->childPath = $dir;
|
$this->childPath = $dir;
|
||||||
|
$this->MakeChildDir();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function appendChildDir($dir = ""){
|
||||||
|
$this->childPath .= $dir;
|
||||||
|
$this->MakeChildDir();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue