lib/private/Files/Type/Detection.php
/**
	 * Add an array of extension -> mimetype mappings
	 *
	 * The mimetype value is in itself an array where the first index is
	 * the assumed correct mimetype and the second is either a secure alternative
	 * or null if the correct is considered secure.
	 *
	 * @param array $types
	 */
Add an array of extension -> mimetype mappings
The mimetype value is in itself an array where the first index is
the assumed correct mimetype and the second is either a secure alternative
or null if the correct is considered secure.

@param array $types
Add an array of extension - > mimetype mappings The mimetype value is in itself an array where the first index is the assumed correct mimetype and the second is either a secure alternative or null if the correct is considered secure . @param array $types
public function registerTypeArray($types) {
		$this->mimetypes = array_merge($this->mimetypes, $types);
		foreach ($this->mimetypes as $mimeType) {
			$this->secureMimeTypes[$mimeType[0]] = isset($mimeType[1]) ? $mimeType[1]: $mimeType[0];
		}
	}
public function registerTypeArray ( $ types ) { $ this -> mimetypes = array_merge ( $ this -> mimetypes , $ types ) ; foreach ( $ this -> mimetypes as $ mimeType ) { $ this -> secureMimeTypes [ $ mimeType [ 0 ] ] = isset ( $ mimeType [ 1 ] ) ? $ mimeType [ 1 ] : $ mimeType [ 0 ] ; } }
Add an array of extension -> mimetype mappings
 The mimetype value is in itself an array where the first index is
 the assumed correct mimetype and the second is either a secure alternative
 or null if the correct is considered secure.
Add an array of extension - > mimetype mappings The mimetype value is in itself an array where the first index is the assumed correct mimetype and the second is either a secure alternative or null if the correct is considered secure .
// Update the alternative mimetypes to avoid having to look them up each time.