source/Application/Model/File.php
protected function _checkArticleFile($aFileInfo)
    {
        //checking params
        if (!isset($aFileInfo['name']) || !isset($aFileInfo['tmp_name'])) {
            throw new \OxidEsales\Eshop\Core\Exception\StandardException('EXCEPTION_NOFILE');
        }

        // error uploading file ?
        if (isset($aFileInfo['error']) && $aFileInfo['error']) {
            throw new \OxidEsales\Eshop\Core\Exception\StandardException('EXCEPTION_FILEUPLOADERROR_' . ((int) $aFileInfo['error']));
        }
    }
protected function _checkArticleFile($aFileInfo)
    {
        //checking params
        if (!isset($aFileInfo['name']) || !isset($aFileInfo['tmp_name'])) {
            throw new \OxidEsales\Eshop\Core\Exception\StandardException('EXCEPTION_NOFILE');
        }

        // error uploading file ?
        if (isset($aFileInfo['error']) && $aFileInfo['error']) {
            throw new \OxidEsales\Eshop\Core\Exception\StandardException('EXCEPTION_FILEUPLOADERROR_' . ((int) $aFileInfo['error']));
        }
    }
protected function _checkArticleFile ( $ aFileInfo ) { //checking params if ( ! isset ( $ aFileInfo [ 'name' ] ) || ! isset ( $ aFileInfo [ 'tmp_name' ] ) ) { throw new \ OxidEsales \ Eshop \ Core \ Exception \ StandardException ( 'EXCEPTION_NOFILE' ) ; } // error uploading file ? if ( isset ( $ aFileInfo [ 'error' ] ) && $ aFileInfo [ 'error' ] ) { throw new \ OxidEsales \ Eshop \ Core \ Exception \ StandardException ( 'EXCEPTION_FILEUPLOADERROR_' . ( ( int ) $ aFileInfo [ 'error' ] ) ) ; } }
Checks if given file is valid upload file

@param array $aFileInfo File info array

@throws oxException Throws exception if file wasn't uploaded successfully.
Checks if given file is valid upload file