mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 09:17:06 +08:00
fix: JPEG format not allowed for assistant images
This commit is contained in:
committed by
fit2cloud-chenyw
parent
b0150f6be5
commit
754b9f2565
@@ -126,7 +126,7 @@ async def ui(session: SessionDep, data: str = Form(), files: List[UploadFile] =
|
||||
file.filename = file_name
|
||||
if flag_name == 'logo' or flag_name == 'float_icon':
|
||||
try:
|
||||
SQLBotFileUtils.check_file(file=file, file_types=[".jpg", ".jpeg", ".png", ".svg"],
|
||||
SQLBotFileUtils.check_file(file=file, file_types=[".jpg", ".png", ".svg"],
|
||||
limit_file_size=(10 * 1024 * 1024))
|
||||
except ValueError as e:
|
||||
error_msg = str(e)
|
||||
|
||||
Reference in New Issue
Block a user