We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2d5eae commit fc72620Copy full SHA for fc72620
components/upload/UploadList.jsx
@@ -7,7 +7,7 @@ import Progress from '../progress';
7
import classNames from 'classnames';
8
import { UploadListProps } from './interface';
9
10
-const imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp'];
+const imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp', 'ico'];
11
// https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL
12
const previewFile = (file, callback) => {
13
if (file.type && !imageTypes.includes(file.type)) {
0 commit comments