Skip to content

Commit fc72620

Browse files
committed
feat: upload add ico type
1 parent c2d5eae commit fc72620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/upload/UploadList.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Progress from '../progress';
77
import classNames from 'classnames';
88
import { UploadListProps } from './interface';
99

10-
const imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp'];
10+
const imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp', 'ico'];
1111
// https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
1212
const previewFile = (file, callback) => {
1313
if (file.type && !imageTypes.includes(file.type)) {

0 commit comments

Comments
 (0)