Browse Source

Move file metadata into the [meta][data] key

Rodrigo Agundez 2 months ago
parent
commit
2b05c9d944
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/open_webui/routers/files.py

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