mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-11-15 01:39:19 +08:00
support more image files type
This commit is contained in:
parent
66da9dbc19
commit
4924a01d05
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user