mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-09 03:18:18 +00:00
refac
Co-Authored-By: Hsienz <55347238+hsienz@users.noreply.github.com>
This commit is contained in:
parent
ce8ed5b5ec
commit
f9ab66f51a
1 changed files with 6 additions and 2 deletions
|
|
@ -282,7 +282,11 @@ def upload_file_handler(
|
|||
},
|
||||
"meta": {
|
||||
"name": name,
|
||||
"content_type": file.content_type if isinstance(file.content_type, str) else None,
|
||||
"content_type": (
|
||||
file.content_type
|
||||
if isinstance(file.content_type, str)
|
||||
else None
|
||||
),
|
||||
"size": len(contents),
|
||||
"data": file_metadata,
|
||||
},
|
||||
|
|
@ -577,7 +581,7 @@ class ContentForm(BaseModel):
|
|||
|
||||
|
||||
@router.post("/{id}/data/content/update")
|
||||
async def update_file_data_content_by_id(
|
||||
def update_file_data_content_by_id(
|
||||
request: Request,
|
||||
id: str,
|
||||
form_data: ContentForm,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue