Skip to content

Commit 2e16592

Browse files
committed
refac
1 parent dfc2dc2 commit 2e16592

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/open_webui/routers/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ async def get_file_content_by_id(id: str, user=Depends(get_verified_user), db: S
722722
)
723723
else:
724724
# File path doesn’t exist, return the content as .txt if possible
725-
file_content = file.content.get('content', '')
725+
file_content = file.data.get('content', '')
726726
file_name = file.filename
727727

728728
# Create a generator that encodes the file content

0 commit comments

Comments
 (0)