mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-12-23 02:49:20 +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/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) {
|
||||
|
Loading…
Reference in New Issue
Block a user