This commit is contained in:
Timothy Jaeryang Baek
2026-03-22 06:40:39 -05:00
parent dfc2dc2c0b
commit 2e165926de
+1 -1
View File
@@ -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