def get_entry_attachment_upload_path(entry, filename):
    """
    Get the path to upload a journal entry's attachment to.

    Args:
        entry:
            The Journal entry that the file will be attached to.
        filename:
            The attachment's original filename.

    Returns:
        The path to upload the attachment to.
    """
    return "know-me/users/{id}/journal/attachments/{file}".format(
        file=filename, id=entry.km_user.id
    )