Fix Dolphin 7.1.4 Files-Download

Hello,

for Everybody who has Problems with Filedownloads with the Filesmodule, here is the Fix:

File: /boonex/files/classes/BxFilesUploader.php

Line: 336

 

function insertSharedMediaToDb($sExt, $aFileInfo)
    {
        if (getParam('bx_files_activation') == 'on') {
            $bAutoActivate = true;
            $sStatus = 'approved';
        } else {
            $bAutoActivate = false;
            $sStatus = 'pending';
        }
        $sFileTitle = addslashes($aFileInfo['medTitle']);
        $sFileDesc = addslashes($aFileInfo['medDesc']);
        $sFileTags = addslashes($aFileInfo['medTags']);
        $iAllowDownload = (int)$aFileInfo['AllowDownload'];
        $sCategory = implode(CATEGORIES_DIVIDER, $aFileInfo['Categories']);
        $sAlbum = isset($aFileInfo['album']) ? $aFileInfo['album'] : getParam('sys_album_default_name');
        $sMedUri = uriGenerate($sFileTitle, $this->oModule->_oDb->sFileTable, $this->oModule->_oDb->aFileFields['medUri']);
        $sDimension = (int)$aFileInfo['medSize'];
        $sExtDb = trim($sExt, '.');
        $sCurTime = time();

        $iInsertedID = $this->oModule->_oDb->insertData(
                array(  'medProfId'=>$this->_iOwnerId,
                        'medExt'=>$sExtDb,
                        'medTitle'=>$sFileTitle,
                        'medUri'=>$sMedUri,
                        'medDesc'=>$sFileDesc,
                        'medTags'=>$sFileTags,
                        'Categories'=>$sCategory,
                    'Type' => $aFileInfo['Type'],
                        'medSize'=>$sDimension,
                        'Approved'=>$sStatus,
                        'medDate'=>$sCurTime,
                        'AllowDownload'=>$iAllowDownload));

Quote · 9 Jul 2014

Line 318 is where I found it in the default 7.1.4 file.....

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 10 Jul 2014

Thank you for pointing this out, we'll incorporate this fix into upcoming version:

http://www.boonex.com/trac/dolphin/ticket/3424

Rules → http://www.boonex.com/terms
Quote · 13 Jul 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.