/**
  * upload
  * @return string
  * @author Cornelius Hansjakob <*****@*****.**>
  * @version 1.0
  */
 private function upload($_FILEDATA)
 {
     if ($_FILEDATA['error'] > 0) {
         $this->core->logger->err('website->controllers->DatareceiverController->upload(): ' . $_FILEDATA['error']);
     } else {
         $objFile = new File();
         $objFile->setLanguageId($this->core->intLanguageId);
         $objFile->setUploadPath(GLOBAL_ROOT_PATH . $this->core->sysConfig->upload->forms->path->local->private);
         $this->strUploadPath = GLOBAL_ROOT_PATH . $this->core->sysConfig->upload->forms->path->local->private;
         $objFile->checkUploadPath();
         $arrFileInfo = array();
         $arrFileInfo = pathinfo($this->strUploadPath . $_FILEDATA['name']);
         $strFileName = $arrFileInfo['filename'];
         $strExtension = $arrFileInfo['extension'];
         $strFileName = $objFile->makeFileIdConform($strFileName);
         $strFile = $strFileName . '_' . uniqid() . '.' . $strExtension;
         if (file_exists($this->strUploadPath . $strFile)) {
             $this->core->logger->err('website->controllers->DatareceiverController->upload(): ' . $strFile . ' already exists.');
         } else {
             move_uploaded_file($_FILEDATA['tmp_name'], $this->strUploadPath . $strFile);
             $this->strAttachmentFile = $strFile;
             return $this->strUploadPath . $strFile;
         }
     }
 }