From 2b05c9d944757600289c38b3d2fde88ebf19997e Mon Sep 17 00:00:00 2001 From: Rodrigo Agundez Date: Sat, 8 Feb 2025 19:35:27 +0900 Subject: [PATCH] Move file metadata into the [meta][data] key --- 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 7cf7a942f..051321257 100644 --- a/backend/open_webui/routers/files.py +++ b/backend/open_webui/routers/files.py @@ -56,11 +56,11 @@ def upload_file( "id": id, "filename": name, "path": file_path, - "data": file_metadata, "meta": { "name": name, "content_type": file.content_type, "size": len(contents), + "data": file_metadata, }, } ),