From fc72620beac72abb0e96178003f96f2ff1dbd7f0 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 15 Mar 2019 22:55:15 +0800 Subject: [PATCH] feat: upload add ico type --- components/upload/UploadList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/upload/UploadList.jsx b/components/upload/UploadList.jsx index e33259fec..a54d579c2 100644 --- a/components/upload/UploadList.jsx +++ b/components/upload/UploadList.jsx @@ -7,7 +7,7 @@ import Progress from '../progress'; import classNames from 'classnames'; import { UploadListProps } from './interface'; -const imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp']; +const imageTypes = ['image', 'webp', 'png', 'svg', 'gif', 'jpg', 'jpeg', 'bmp', 'ico']; // https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL const previewFile = (file, callback) => { if (file.type && !imageTypes.includes(file.type)) {