From c51a91583e4e35f89a715756dfc83908b79cb234 Mon Sep 17 00:00:00 2001 From: jmtatsch Date: Sun, 27 Apr 2025 10:59:35 +0200 Subject: [PATCH] Dont attempt to infer charset for video files --- backend/open_webui/routers/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/routers/files.py b/backend/open_webui/routers/files.py index 8a2888d86..e64041ce5 100644 --- a/backend/open_webui/routers/files.py +++ b/backend/open_webui/routers/files.py @@ -129,7 +129,7 @@ def upload_file( ProcessFileForm(file_id=id, content=result.get("text", "")), user=user, ) - elif file.content_type not in ["image/png", "image/jpeg", "image/gif"]: + elif file.content_type not in ["image/png", "image/jpeg", "image/gif", "video/mp4", "video/ogg", "video/quicktime", "video/webm"]: process_file(request, ProcessFileForm(file_id=id), user=user) file_item = Files.get_file_by_id(id=id)