From 4924a01d05e665c59675bdf958a5a941500133d7 Mon Sep 17 00:00:00 2001 From: Yanyutin753 <132346501+Yanyutin753@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:24:47 +0800 Subject: [PATCH] support more image files type --- src/api/controllers/chat.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/api/controllers/chat.ts b/src/api/controllers/chat.ts index a3d673c..cf4079e 100644 --- a/src/api/controllers/chat.ts +++ b/src/api/controllers/chat.ts @@ -767,7 +767,16 @@ async function uploadFile(fileUrl: string, ticket: string) { 'image/tiff', 'image/png', 'image/bmp', - 'image/gif' + 'image/gif', + 'image/svg+xml', + 'image/webp', + 'image/ico', + 'image/heic', + 'image/heif', + 'image/bmp', + 'image/x-icon', + 'image/vnd.microsoft.icon', + 'image/x-png' ].includes(mimeType); if(isImage) {