From 106e7d89f9d15ac8ca707d048a9e1cb6d83cca65 Mon Sep 17 00:00:00 2001 From: Akash Kava <39438041+ackava@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:31:32 +0530 Subject: [PATCH] convert exception added --- src/basic/UploadEvent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/UploadEvent.tsx b/src/basic/UploadEvent.tsx index ac4c2dd9..e4b6023d 100644 --- a/src/basic/UploadEvent.tsx +++ b/src/basic/UploadEvent.tsx @@ -130,7 +130,7 @@ const requestUpload = ({ const checkFileType = isFileType(accept); for (const iterator of files) { - if (maxSize && iterator.size > maxSize) { + if (!convert && maxSize && iterator.size > maxSize) { msg += `Size of ${iterator.name} is more than ${maxSize}`; continue; }