def METHOD_NAME(value):
    file_extension = value.rsplit('.', 1)[1].upper()
    xl = (file_extension == 'XLS') or (file_extension == 'XLSX')
    file_type = "EXCEL" if xl else file_extension
    return file_type