def METHOD_NAME(export_id, file_path, file_name):
    export = Export.by_id(export_id)
    file_path = ensure_path(file_path)
    export.file_name = file_name
    export.file_size = file_path.stat().st_size
    export.content_hash = checksum(file_path)
    try:
        archive.archive_file(
            file_path, content_hash=export.content_hash, mime_type=export.mime_type
        )
        export.set_status(status=Status.SUCCESS)
    except Exception:
        log.exception("Failed to upload export: %s", export)
        export.set_status(status=Status.FAILED)
    db.session.commit()
    params = {"export": export}
    role = Role.by_id(export.creator_id)
    log.info("Export [%r] complete: %s", export, export.status)
    publish(
        Events.COMPLETE_EXPORT,
        params=params,
        channels=[role],
    )
    send_export_notification(export)