From 2e165926de1b19fdf6f180de3bef24f102afc98f Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 22 Mar 2026 06:40:39 -0500 Subject: [PATCH] refac --- backend/open_webui/routers/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/routers/files.py b/backend/open_webui/routers/files.py index b6d081085..62f29b1a2 100644 --- a/backend/open_webui/routers/files.py +++ b/backend/open_webui/routers/files.py @@ -722,7 +722,7 @@ async def get_file_content_by_id(id: str, user=Depends(get_verified_user), db: S ) else: # File path doesn’t exist, return the content as .txt if possible - file_content = file.content.get('content', '') + file_content = file.data.get('content', '') file_name = file.filename # Create a generator that encodes the file content