1. SafePlayerHD

    SafePlayerHD - Dec 24, 2015 New Member

    Credit
    Point
    It's possible you can change KB to MB @Brivium.

    It would be super convenient and very cool so I am relying wholeheartedly on you and also hope a reply.
     
    Loading...
  2. Brivium

    Brivium - Dec 24, 2015 XenForo Services Staff Member

    Credit
    Point
    You can change from KB to MB by open file UserProfileCover\Upload\library\Brivium\ProfileCover\Model\UploadImage.php and find

    Code:
    if(!$this->maxFileSize($maxFileSize*1024,$baseTempFile) and $maxFileSize!=-1){
    throw new XenForo_Exception(new XenForo_Phrase('BRPC_size_upload_x',array('maxFileSize'=>$maxFileSize)), true);
    }
    
    Replace with
    Code:
    if(!$this->maxFileSize($maxFileSize*1048576,$baseTempFile) and $maxFileSize!=-1){
    throw new XenForo_Exception(new XenForo_Phrase('BRPC_size_upload_x',array('maxFileSize'=>$maxFileSize)), true);
    }
    
    Regards,
     
    SafePlayerHD likes this.
    #2
  3. SafePlayerHD

    SafePlayerHD - Dec 24, 2015 New Member

    Credit
    Point
    Thanks!
     
    #3