Merge pull request #7 from Yanyutin753/master

support more image files type
This commit is contained in:
Vinlic科技 2024-04-05 16:34:13 +08:00 committed by GitHub
commit fb665edbb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -767,7 +767,16 @@ async function uploadFile(fileUrl: string, ticket: string) {
'image/tiff', 'image/tiff',
'image/png', 'image/png',
'image/bmp', '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); ].includes(mimeType);
if(isImage) { if(isImage) {