Expend upload image file types

This commit is contained in:
Yanyutin753
2024-05-19 19:10:00 +08:00
parent 22d23afbaf
commit c5f13cfdda
4 changed files with 5 additions and 5 deletions

View File

@@ -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]);
}