system/modules/DocumentManagementSystem/classes/DmsConfig.php
public static function getMaxUploadFileSize($strUnit, $blnFormatted)
	{
		$arrValue = deserialize($GLOBALS['TL_CONFIG']['dmsMaxUploadFileSize']);
		$dmsUnit = $arrValue['unit'];
		
		$dmsVal = \Document::convertFileSize((double) $arrValue['value'], $dmsUnit, $strUnit);
		
		if ($blnFormatted)
		{
			return \Document::formatFileSize($dmsVal, $strUnit);
		}
		
		return $dmsVal;
	}
public static function getMaxUploadFileSize($strUnit, $blnFormatted)
	{
		$arrValue = deserialize($GLOBALS['TL_CONFIG']['dmsMaxUploadFileSize']);
		$dmsUnit = $arrValue['unit'];
		
		$dmsVal = \Document::convertFileSize((double) $arrValue['value'], $dmsUnit, $strUnit);
		
		if ($blnFormatted)
		{
			return \Document::formatFileSize($dmsVal, $strUnit);
		}
		
		return $dmsVal;
	}
public static function getMaxUploadFileSize ( $ strUnit , $ blnFormatted ) { $ arrValue = deserialize ( $ GLOBALS [ 'TL_CONFIG' ] [ 'dmsMaxUploadFileSize' ] ) ; $ dmsUnit = $ arrValue [ 'unit' ] ; $ dmsVal = \ Document :: convertFileSize ( ( double ) $ arrValue [ 'value' ] , $ dmsUnit , $ strUnit ) ; if ( $ blnFormatted ) { return \ Document :: formatFileSize ( $ dmsVal , $ strUnit ) ; } return $ dmsVal ; }
Return the maximum allowed upload file size, defined in system settings.

@param	string	$strUnit	The file size unit.
@param	bool	$blnFormatted	True if the file size should be returned as formatted string (with unit).
@return	mixed	The file size for the given unit (as int or formatted as string).
Return the maximum allowed upload file size defined in system settings .