mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
0280ee30c7
commit
b80f0751f6
1 changed files with 5 additions and 0 deletions
|
|
@ -153,6 +153,11 @@ def upload_file(
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
]:
|
]:
|
||||||
process_file(request, ProcessFileForm(file_id=id), user=user)
|
process_file(request, ProcessFileForm(file_id=id), user=user)
|
||||||
|
else:
|
||||||
|
log.info(
|
||||||
|
f"File type {file.content_type} is not supported for processing, but trying to process anyway"
|
||||||
|
)
|
||||||
|
process_file(request, ProcessFileForm(file_id=id), user=user)
|
||||||
|
|
||||||
file_item = Files.get_file_by_id(id=id)
|
file_item = Files.get_file_by_id(id=id)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue