/var/www/vhosts/nabawater/backend/models
Edit: /var/www/vhosts/nabawater/backend/models/BranchImage.php (1879B)
isTemp($this->{$attribute})) {
$path = $uploadHelper->getAbsPath($this->{$attribute});
$destination = $uploadHelper::IMAGEITEM;
switch($attribute) {
case 'image_original_path':
$destination = $uploadHelper->join([$destination,$uploadHelper::ORIGINAL]);
break;
case 'image_large_path':
$destination = $uploadHelper->join([$destination,$uploadHelper::VARIANT]);
break;
case 'image_thumb_path':
$destination = $uploadHelper->join([$destination,$uploadHelper::THUMBNAIL]);
break;
}
$uploadHelper->setPath($destination);
$distPath = $uploadHelper->join([$uploadHelper->getPath(), basename($path)]);
$uploadHelper->move($path, $distPath);
$this->{$attribute} = DIRECTORY_SEPARATOR . $uploadHelper->getRealPath($distPath);
//print_r($this->{$attribute});die;
}
}
}