This commit is contained in:
2023-08-28 15:40:12 +10:00
parent 9da6f39e6e
commit 338d6c6f9d

View File

@@ -850,7 +850,7 @@ const handleChangeSelectFile = async () => {
const handleFilesUpload = (files: FileList) => {
const fileList = [];
if (props.multiple == false && fileList.length > 1) {
if (props.multiple == false && files.length > 1) {
fileList.push(Array.from(files)[0]);
} else {
fileList.push(...Array.from(files));