|
|
|
@ -26,15 +26,12 @@ export default class UploadList extends React.Component<UploadListProps, any> {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
(items || []).forEach(file => {
|
|
|
|
|
const isValidateFile =
|
|
|
|
|
file.originFileObj instanceof File || file.originFileObj instanceof Blob;
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
typeof document === 'undefined' ||
|
|
|
|
|
typeof window === 'undefined' ||
|
|
|
|
|
!(window as any).FileReader ||
|
|
|
|
|
!(window as any).File ||
|
|
|
|
|
!isValidateFile ||
|
|
|
|
|
!(file.originFileObj instanceof File || file.originFileObj instanceof Blob) ||
|
|
|
|
|
file.thumbUrl !== undefined
|
|
|
|
|
) {
|
|
|
|
|
return;
|
|
|
|
|