def view_in_browser(mtype):
    """Returns true if the file mime type passed to this function
	means that the file should be shown 'in browser'
	"""
    if mtype == 'application/pdf':
        return True
    elif mtype == 'text/plain':
        return True
    elif mtype.startswith('image'):
        return True
    else:
        return False
