From d4c42dcfa94467d5bfefedbe5ee2764dfb868b52 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 23 Oct 2024 15:09:20 -0700 Subject: [PATCH] fix --- backend/open_webui/apps/webui/routers/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/apps/webui/routers/files.py b/backend/open_webui/apps/webui/routers/files.py index 0a3f22df8..8294328cf 100644 --- a/backend/open_webui/apps/webui/routers/files.py +++ b/backend/open_webui/apps/webui/routers/files.py @@ -69,7 +69,7 @@ def upload_file(file: UploadFile = File(...), user=Depends(get_verified_user)): try: process_file(ProcessFileForm(file_id=id)) - file = Files.get_file_by_id(id=id) + file_item = Files.get_file_by_id(id=id) except Exception as e: log.exception(e) log.error(f"Error processing file: {file_item.id}")