mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
⭐ Expend upload image file types
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
|
||||
if (
|
||||
files.length > 0 &&
|
||||
['image/gif', 'image/jpeg', 'image/png'].includes(files[0]['type'])
|
||||
['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(files[0]['type'])
|
||||
) {
|
||||
reader.readAsDataURL(files[0]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user