up: get mime type based on extension.