mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-11-11 09:29:20 +08:00
Merge pull request #7 from Yanyutin753/master
support more image files type
This commit is contained in:
commit
fb665edbb9
@ -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