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:
parent
609fa4f513
commit
e5d2ba87e8
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user