system/modules/DocumentManagementSystem/dca/tl_settings.php
private function getPhpUploadMaxFilesize()
	{
		$param = trim(ini_get('upload_max_filesize'));
		$unit = strtolower(substr($param, -1));
		$val = (double) $param;
		switch($unit)
		{
			case 'k':
				$val = \Document::convertFileSize((double) substr($param, 0, - 1), \Document::FILE_SIZE_UNIT_KB, \Document::FILE_SIZE_UNIT_BYTE);
				break;
			case 'm':
				$val = \Document::convertFileSize((double) substr($param, 0, - 1), \Document::FILE_SIZE_UNIT_MB, \Document::FILE_SIZE_UNIT_BYTE);
				break;
			case 'g':
				$val = \Document::convertFileSize((double) substr($param, 0, - 1), \Document::FILE_SIZE_UNIT_GB, \Document::FILE_SIZE_UNIT_BYTE);
				break;
		}
		
		if (!is_double($val))
		{
			throw new \Exception('PHP value for upload_max_filesize could not be determined.');
		}
		return $val;
	}
private function getPhpUploadMaxFilesize()
	{
		$param = trim(ini_get('upload_max_filesize'));
		$unit = strtolower(substr($param, -1));
		$val = (double) $param;
		switch($unit)
		{
			case 'k':
				$val = \Document::convertFileSize((double) substr($param, 0, - 1), \Document::FILE_SIZE_UNIT_KB, \Document::FILE_SIZE_UNIT_BYTE);
				break;
			case 'm':
				$val = \Document::convertFileSize((double) substr($param, 0, - 1), \Document::FILE_SIZE_UNIT_MB, \Document::FILE_SIZE_UNIT_BYTE);
				break;
			case 'g':
				$val = \Document::convertFileSize((double) substr($param, 0, - 1), \Document::FILE_SIZE_UNIT_GB, \Document::FILE_SIZE_UNIT_BYTE);
				break;
		}
		
		if (!is_double($val))
		{
			throw new \Exception('PHP value for upload_max_filesize could not be determined.');
		}
		return $val;
	}
private function getPhpUploadMaxFilesize ( ) { $ param = trim ( ini_get ( 'upload_max_filesize' ) ) ; $ unit = strtolower ( substr ( $ param , - 1 ) ) ; $ val = ( double ) $ param ; switch ( $ unit ) { case 'k' : $ val = \ Document :: convertFileSize ( ( double ) substr ( $ param , 0 , - 1 ) , \ Document :: FILE_SIZE_UNIT_KB , \ Document :: FILE_SIZE_UNIT_BYTE ) ; break ; case 'm' : $ val = \ Document :: convertFileSize ( ( double ) substr ( $ param , 0 , - 1 ) , \ Document :: FILE_SIZE_UNIT_MB , \ Document :: FILE_SIZE_UNIT_BYTE ) ; break ; case 'g' : $ val = \ Document :: convertFileSize ( ( double ) substr ( $ param , 0 , - 1 ) , \ Document :: FILE_SIZE_UNIT_GB , \ Document :: FILE_SIZE_UNIT_BYTE ) ; break ; } if ( ! is_double ( $ val ) ) { throw new \ Exception ( 'PHP value for upload_max_filesize could not be determined.' ) ; } return $ val ; }
Get the value of the upload_max_filesize set in PHP.

@return	int	The int value of the upload_max_filesize set in PHP in byte.
Get the value of the upload_max_filesize set in PHP .