function __construct()
 {
     parent::__construct('Photo');
     $this->oModule = BxDolModule::getInstance('BxPhotosModule');
     $this->sWorkingFile = BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects';
     $this->sAcceptMimeType = 'image/*';
     $this->bImageAutoRotate = 1;
 }
 function __construct()
 {
     parent::__construct('File');
     $this->oModule = BxDolModule::getInstance('BxFilesModule');
     $this->sWorkingFile = BX_DOL_URL_ROOT . $this->oModule->_oConfig->getBaseUri() . 'albums/my/add_objects';
     $iMaxByAdmin = 1024 * 1024 * (int) getParam($this->oModule->_oConfig->getMainPrefix() . '_max_file_size');
     if ($iMaxByAdmin > 0 && $iMaxByAdmin < $this->iMaxFilesize) {
         $this->iMaxFilesize = $iMaxByAdmin;
     }
 }