Commit 63abb636 by dreamer6680 Committed by GitHub

Fix the incompatibility of drag-and-drop upload to Windows (#4974)

parent 6edab35b
......@@ -153,13 +153,6 @@ const FileSelector = ({
}
} else if (firstEntry?.isFile) {
const files = Array.from(e.dataTransfer.files);
let isErr = files.some((item) => item.type === '');
if (isErr) {
return toast({
title: t('file:upload_error_description'),
status: 'error'
});
}
fileList.push(
...files
......
......@@ -140,13 +140,6 @@ const FileSelector = ({
}
} else if (firstEntry?.isFile) {
const files = Array.from(e.dataTransfer.files);
let isErr = files.some((item) => item.type === '');
if (isErr) {
return toast({
title: t('file:upload_error_description'),
status: 'error'
});
}
onSelectFile(files.filter((item) => filterTypeReg.test(item.name)));
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment