We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bbb862 commit b66a83cCopy full SHA for b66a83c
src/components/Upload/src/helper.ts
@@ -11,7 +11,7 @@ export function checkImgType(file: File) {
11
}
12
13
export function isImgTypeByName(name: string) {
14
- return /\.(jpg|jpeg|png|gif)$/i.test(name);
+ return /\.(jpg|jpeg|png|gif|webp)$/i.test(name);
15
16
17
export function getBase64WithFile(file: File) {
0 commit comments