Updated WarehouseOrder and WarehouseOrderRequest
This commit is contained in:
@@ -50,6 +50,14 @@ class mfUpload_TmpFile {
|
||||
|
||||
public function move_upload($path) {
|
||||
if($path && $this->tmp_name) {
|
||||
// check if all directories exist needed for the path
|
||||
$dir = dirname($path);
|
||||
if(!is_dir($dir)) {
|
||||
if(!mkdir($dir, 0777, true)) {
|
||||
$this->errormessage = "Cannot create directory $dir.";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(move_uploaded_file($this->tmp_name, $path)) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user