source/Application/Controller/Admin/GenericImportMain.php
protected function _getUploadedCsvFilePath()
    {
        //try to get uploaded csv file path
        if ($this->_sCsvFilePath !== null) {
            return $this->_sCsvFilePath;
        } elseif ($this->_sCsvFilePath = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('sCsvFilePath')) {
            return $this->_sCsvFilePath;
        }

        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $aFile = $oConfig->getUploadedFile('csvfile');
        if (isset($aFile['name']) && $aFile['name']) {
            $this->_sCsvFilePath = $oConfig->getConfigParam('sCompileDir') . basename($aFile['tmp_name']);
            move_uploaded_file($aFile['tmp_name'], $this->_sCsvFilePath);
            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('sCsvFilePath', $this->_sCsvFilePath);

            return $this->_sCsvFilePath;
        }
    }
protected function _getUploadedCsvFilePath()
    {
        //try to get uploaded csv file path
        if ($this->_sCsvFilePath !== null) {
            return $this->_sCsvFilePath;
        } elseif ($this->_sCsvFilePath = \OxidEsales\Eshop\Core\Registry::getSession()->getVariable('sCsvFilePath')) {
            return $this->_sCsvFilePath;
        }

        $oConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        $aFile = $oConfig->getUploadedFile('csvfile');
        if (isset($aFile['name']) && $aFile['name']) {
            $this->_sCsvFilePath = $oConfig->getConfigParam('sCompileDir') . basename($aFile['tmp_name']);
            move_uploaded_file($aFile['tmp_name'], $this->_sCsvFilePath);
            \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('sCsvFilePath', $this->_sCsvFilePath);

            return $this->_sCsvFilePath;
        }
    }
protected function _getUploadedCsvFilePath ( ) { //try to get uploaded csv file path if ( $ this -> _sCsvFilePath !== null ) { return $ this -> _sCsvFilePath ; } elseif ( $ this -> _sCsvFilePath = \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> getVariable ( 'sCsvFilePath' ) ) { return $ this -> _sCsvFilePath ; } $ oConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ aFile = $ oConfig -> getUploadedFile ( 'csvfile' ) ; if ( isset ( $ aFile [ 'name' ] ) && $ aFile [ 'name' ] ) { $ this -> _sCsvFilePath = $ oConfig -> getConfigParam ( 'sCompileDir' ) . basename ( $ aFile [ 'tmp_name' ] ) ; move_uploaded_file ( $ aFile [ 'tmp_name' ] , $ this -> _sCsvFilePath ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( 'sCsvFilePath' , $ this -> _sCsvFilePath ) ; return $ this -> _sCsvFilePath ; } }
Checks if CSV file was uploaded. If uploaded - moves it to temp dir
and stores path to file in session. Return path to uploaded file.

@return string
Checks if CSV file was uploaded . If uploaded - moves it to temp dir and stores path to file in session . Return path to uploaded file .