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
		);
	}