From 77d35a33875fff799a3f38c805e5e4e94e455d68 Mon Sep 17 00:00:00 2001 From: Wang Qi Date: Wed, 15 Jul 2026 17:30:10 +0800 Subject: [PATCH] Fix agentbot cannot upload file (#828) (#16946) --- api/apps/restful_apis/agent_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/apps/restful_apis/agent_api.py b/api/apps/restful_apis/agent_api.py index 3c70efe882..df9d77b570 100644 --- a/api/apps/restful_apis/agent_api.py +++ b/api/apps/restful_apis/agent_api.py @@ -846,6 +846,7 @@ async def create_agent(tenant_id): @manager.route("/agents//upload", methods=["POST"]) # noqa: F821 @login_required +@login_required(auth_types=[AUTH_JWT, AUTH_API, AUTH_BETA]) @add_tenant_id_to_kwargs @_require_canvas_access_async async def upload_agent_file(agent_id, tenant_id):