src/AbstractUpload.php
private static function determineMaximumUploadSize() {
		$postMaxSize = self::parseIniSize(
			\ini_get('post_max_size')
		);

		if ($postMaxSize <= 0) {
			$postMaxSize = \PHP_INT_MAX;
		}

		$memoryLimit = self::parseIniSize(
			\ini_get('memory_limit')
		);

		if ($memoryLimit === -1) {
			$memoryLimit = \PHP_INT_MAX;
		}

		return \min(
			self::parseIniSize(
				\ini_get('upload_max_filesize')
			),
			$postMaxSize,
			$memoryLimit
		);
	}
private static function determineMaximumUploadSize() {
		$postMaxSize = self::parseIniSize(
			\ini_get('post_max_size')
		);

		if ($postMaxSize <= 0) {
			$postMaxSize = \PHP_INT_MAX;
		}

		$memoryLimit = self::parseIniSize(
			\ini_get('memory_limit')
		);

		if ($memoryLimit === -1) {
			$memoryLimit = \PHP_INT_MAX;
		}

		return \min(
			self::parseIniSize(
				\ini_get('upload_max_filesize')
			),
			$postMaxSize,
			$memoryLimit
		);
	}
private static function determineMaximumUploadSize ( ) { $ postMaxSize = self :: parseIniSize ( \ ini_get ( 'post_max_size' ) ) ; if ( $ postMaxSize <= 0 ) { $ postMaxSize = \ PHP_INT_MAX ; } $ memoryLimit = self :: parseIniSize ( \ ini_get ( 'memory_limit' ) ) ; if ( $ memoryLimit === - 1 ) { $ memoryLimit = \ PHP_INT_MAX ; } return \ min ( self :: parseIniSize ( \ ini_get ( 'upload_max_filesize' ) ) , $ postMaxSize , $ memoryLimit ) ; }
Determines the maximum allowed size of file uploads as per PHP's configuration

@return int the size in bytes
Determines the maximum allowed size of file uploads as per PHP s configuration