We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce8ed5b commit f9ab66fCopy full SHA for f9ab66f
1 file changed
backend/open_webui/routers/files.py
@@ -282,7 +282,11 @@ def upload_file_handler(
282
},
283
"meta": {
284
"name": name,
285
- "content_type": file.content_type if isinstance(file.content_type, str) else None,
+ "content_type": (
286
+ file.content_type
287
+ if isinstance(file.content_type, str)
288
+ else None
289
+ ),
290
"size": len(contents),
291
"data": file_metadata,
292
@@ -577,7 +581,7 @@ class ContentForm(BaseModel):
577
581
578
582
579
583
@router.post("/{id}/data/content/update")
580
-async def update_file_data_content_by_id(
584
+def update_file_data_content_by_id(
585
request: Request,
586
id: str,
587
form_data: ContentForm,
0 commit comments