public function parseSimpleType() {
		if (is_callable('elgg_get_file_simple_type')) {
			return elgg_get_file_simple_type($this->detectMimeType());
		}

		$mime_type = $this->detectMimeType();

		switch ($mime_type) {
			case "application/msword":
			case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
			case "application/pdf":
				return "document";

			case "application/ogg":
				return "audio";
		}

		if (preg_match('~^(audio|image|video)/~', $mime_type, $m)) {
			return $m[1];
		}
		if (0 === strpos($mime_type, 'text/') || false !== strpos($mime_type, 'opendocument')) {
			return "document";
		}

		// unrecognized MIME
		return "general";
	}