fix(verify-page): export (download) files now includes files

The issue was noticed on the windows machine, removing forward slash made it work
This commit is contained in:
enes 2024-08-15 16:44:53 +02:00
parent 609fa4f513
commit e5d2ba87e8
2 changed files with 2 additions and 2 deletions

View File

@ -421,7 +421,7 @@ export const VerifyPage = () => {
for (const [fileName, pdf] of Object.entries(files)) {
const pages = await addMarks(pdf.file, marksByPage)
const blob = await convertToPdfBlob(pages)
zip.file(`/files/${fileName}`, blob)
zip.file(`files/${fileName}`, blob)
}
const arrayBuffer = await zip

View File

@ -15,7 +15,7 @@ const getZipWithFiles = async (
for (const [fileName, pdf] of Object.entries(files)) {
const pages = await addMarks(pdf.file, marksByPage)
const blob = await convertToPdfBlob(pages)
zip.file(`/files/${fileName}`, blob)
zip.file(`files/${fileName}`, blob)
}
return zip