def insert_upload_urls(current_document, eml_node):
    user_folder = user_data.get_user_folder_name()
    uploads_folder = f'{user_folder}/uploads/{current_document}'
    parsed_url = urlparse(request.base_url)
    uploads_url_prefix = f'{parsed_url.scheme}://{parsed_url.netloc}/{uploads_folder}'
    insert_urls(uploads_url_prefix, eml_node, names.DATATABLE)
    insert_urls(uploads_url_prefix, eml_node, names.OTHERENTITY)
def insert_upload_urls(current_document, eml_node):
    user_folder = user_data.get_user_folder_name()
    uploads_folder = f'{user_folder}/uploads/{current_document}'
    parsed_url = urlparse(request.base_url)
    uploads_url_prefix = f'{parsed_url.scheme}://{parsed_url.netloc}/{uploads_folder}'
    insert_urls(uploads_url_prefix, eml_node, names.DATATABLE)
    insert_urls(uploads_url_prefix, eml_node, names.OTHERENTITY)