fix: remove svg image support in upload files

This commit is contained in:
ulleo
2026-06-03 15:55:05 +08:00
committed by ulleo
parent 49e7bb1245
commit 835eefcb39
9 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -130,7 +130,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", ".png", ".svg"],
SQLBotFileUtils.check_file(file=file, file_types=[".jpg", ".jpeg", ".png"],
limit_file_size=(10 * 1024 * 1024))
except ValueError as e:
error_msg = str(e)