Skip to content

Commit 74c2afb

Browse files
fix: JPEG format not allowed for assistant images
1 parent b0150f6 commit 74c2afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/system/api/assistant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async def ui(session: SessionDep, data: str = Form(), files: List[UploadFile] =
126126
file.filename = file_name
127127
if flag_name == 'logo' or flag_name == 'float_icon':
128128
try:
129-
SQLBotFileUtils.check_file(file=file, file_types=[".jpg", ".jpeg", ".png", ".svg"],
129+
SQLBotFileUtils.check_file(file=file, file_types=[".jpg", ".png", ".svg"],
130130
limit_file_size=(10 * 1024 * 1024))
131131
except ValueError as e:
132132
error_msg = str(e)

0 commit comments

Comments
 (0)