def get_file_list(filenames, file_ext, proc_steps, success):
    """Gets file list

    This function takes the inputted filenames, requested file ext,
    and requested processing steps. The output file list includes
    information from images that were successfully uploaded.

    Args:
        filenames (list): list of filenames
        file_ext (str): requested file extension
        proc_steps (list): list of processing steps
        success (list): list of upload success
    Returns:
        file_list (list): list of properly formatted image info
        for download_images
    """
    file_list = []
    for i in range(len(filenames)):
        if success[i]:
            file_list.append([filenames[i], file_ext, proc_steps])
    return file_list