Timothy Jaeryang Baek 4 ay önce
ebeveyn
işleme
b80f0751f6
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      backend/open_webui/routers/files.py

+ 5 - 0
backend/open_webui/routers/files.py

@@ -153,6 +153,11 @@ def upload_file(
                     "video/quicktime",
                 ]:
                     process_file(request, ProcessFileForm(file_id=id), user=user)
+                else:
+                    log.info(
+                        f"File type {file.content_type} is not supported for processing, but trying to process anyway"
+                    )
+                    process_file(request, ProcessFileForm(file_id=id), user=user)
 
                 file_item = Files.get_file_by_id(id=id)
             except Exception as e: