diff --git a/components/routes/tools/verificationManagement/components/ViewVerification.tsx b/components/routes/tools/verificationManagement/components/ViewVerification.tsx index 94187206..5af8c77c 100644 --- a/components/routes/tools/verificationManagement/components/ViewVerification.tsx +++ b/components/routes/tools/verificationManagement/components/ViewVerification.tsx @@ -16,10 +16,12 @@ const ViewVerification: FC { - folderName = file.fileName.split("/")[0]; - zip.file(file.fileName, file.downloadUrl); - }); + for (const files of fileList) { + folderName = files?.fileName?.split("/")[0]; + const blob = await (await fetch(files.downloadUrl)).blob(); + zip.file(files.fileName, blob); + } + const content = await zip.generateAsync({ type: "blob" }); const link = document.createElement("a"); link.href = URL.createObjectURL(content);