fix: JPEG format not allowed for assistant images

This commit is contained in:
fit2cloud-chenyw
2025-12-30 10:41:53 +08:00
committed by fit2cloud-chenyw
parent b0150f6be5
commit 754b9f2565
+1 -1
View File
@@ -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)