def METHOD_NAME(blocks, block, plain_text_list, to_string, index):
    file_url = block["data"].get("file", {}).get("url")
    caption = block["data"].get("caption")
    if file_url:
        file_url = clean_text_data(file_url)
        if to_string:
            plain_text_list.append(strip_tags(file_url))
        else:
            blocks[index]["data"]["file"]["ulr"] = file_url
    if caption:
        caption = clean_text_data(caption)
        if to_string:
            plain_text_list.append(strip_tags(caption))
        else:
            blocks[index]["data"]["caption"] = caption