protected function getExtension($mimetype)
	{
		$mime = new FlatRepository;
		$extension = 'mp4';
		$extensions = $mime->findExtensions($mimetype);
		if (count($extensions))
			$extension = $extensions[0];

		return $extension;
	}
protected function getExtension($mimetype)
	{
		$mime = new FlatRepository;
		$extension = 'mp4';
		$extensions = $mime->findExtensions($mimetype);
		if (count($extensions))
			$extension = $extensions[0];

		return $extension;
	}
protected function getExtension ( $ mimetype ) { $ mime = new FlatRepository ; $ extension = 'mp4' ; $ extensions = $ mime -> findExtensions ( $ mimetype ) ; if ( count ( $ extensions ) ) $ extension = $ extensions [ 0 ] ; return $ extension ; }
Returns file extension of a given mime type

@uses \Dflydev\ApacheMimeTypes\FlatRepository Mimetype parser library
@param  string $mimetype Mime type
@return string           File extension of given mime type. it will return "mp4" if no extension could be found
Returns file extension of a given mime type