⭐ Expend upload image file types
This commit is contained in:
1 parent
22d23afbaf
commit
c5f13cfdda
4 files changed
+5
-5
No files matched your search
@@ -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