Timothy J. Baek 6 月之前
父节点
当前提交
d4c42dcfa9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/apps/webui/routers/files.py

+ 1 - 1
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}")