Skip to content

Commit

Permalink
convert exception added
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Oct 17, 2024
1 parent e4f358d commit 106e7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/UploadEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 106e7d8

Please sign in to comment.