def uploaded_file_extension(filename: str) -> str:
    """
    Returns the extension from a file name

    :param filename: Name of the file with its extension
    :type filename: str
    :return: The extension of the file
    :rtype: str
    """

    extension = filename.rsplit('.', 1)[1].lower()
    return "%s%s" % (".", extension)