/**
  * handleImageUpload
  * @author Cornelius Hansjakob <*****@*****.**>
  * @version 1.0
  */
 private function handleImageUpload()
 {
     $this->core->logger->debug('media->controllers->UploadController->handleImageUpload()');
     $objImage = new Image();
     $objImage->setUpload($this->objUpload);
     $objImage->setParentId($this->intParentId);
     $objImage->setParentTypeId($this->core->sysConfig->parent_types->folder);
     $objImage->setUploadPath(GLOBAL_ROOT_PATH . $this->core->sysConfig->upload->images->path->local->private);
     $objImage->setPublicFilePath(GLOBAL_ROOT_PATH . $this->core->sysConfig->upload->images->path->local->public);
     $objImage->setDefaultImageSizes($this->core->sysConfig->upload->images->default_sizes->default_size->toArray());
     $objImage->add('Filedata');
     $this->writeViewData($objImage);
 }
 /**
  * handleImageUpload
  * @author Cornelius Hansjakob <*****@*****.**>
  * @version 1.0
  */
 private function handleImageUpload()
 {
     $this->core->logger->debug('media->controllers->UploadController->handleImageUpload()');
     $objImage = new Image();
     $objImage->setUpload($this->objUpload);
     $objImage->setParentId($this->intParentId);
     $objImage->setParentTypeId($this->core->sysConfig->parent_types->folder);
     $objImage->setSegmenting($this->core->sysConfig->upload->images->segmenting->enabled == 'true' ? true : false);
     $objImage->setNumberOfSegments($this->core->sysConfig->upload->images->segmenting->number_of_segments);
     $objImage->setUploadPath(GLOBAL_ROOT_PATH . $this->core->sysConfig->upload->images->path->local->private);
     $objImage->setPublicFilePath(GLOBAL_ROOT_PATH . $this->core->sysConfig->upload->images->path->local->public);
     $objImage->setTmpFilePath(GLOBAL_ROOT_PATH . $this->core->sysConfig->upload->images->path->local->tmp);
     $objImage->setDefaultImageSizes($this->core->sysConfig->upload->images->default_sizes->default_size->toArray());
     $objImage->setLanguageId($this->intLanguageId);
     $objImage->add(self::UPLOAD_FIELD);
     $this->writeViewData($objImage);
 }