def determine_file_type(record):
    """
    Determine the file type used in the ENA archive
    :param record: ENA API record
    :return: the file type
    """
    file_server_types = ['ftp', 'galaxy', 'aspera']
    for tmp in file_server_types:
        key_to_check = f"submitted_{tmp}"
        if key_to_check in record and record[key_to_check] != '':
            return tmp
    return ''