def upload_type_check(filename, file_list):
    """ Checks that upload file type has the required file extension

    """
    condition = ('.' in filename) and (filename.rsplit('.', 1)[1].lower()
                                       in set(file_list))

    return condition