mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-09 03:18:18 +00:00
refac
This commit is contained in:
parent
dfc2dc2c0b
commit
2e165926de
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue