Skip to content

Commit

Permalink
support more image files type
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanyutin753 committed Apr 5, 2024
1 parent 66da9db commit 4924a01
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/api/controllers/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4924a01

Please sign in to comment.