Change: no compression when downloading library item as zip file

This commit is contained in:
Nicholas Wallace 2024-12-07 16:52:31 -07:00
parent 3b4a5b8785
commit 61729881cb

View File

@ -7,7 +7,7 @@ module.exports.zipDirectoryPipe = (path, filename, res) => {
res.attachment(filename)
const archive = archiver('zip', {
zlib: { level: 9 } // Sets the compression level.
zlib: { level: 0 } // Sets the compression level.
})
// listen for all archive data to be written
@ -49,4 +49,4 @@ module.exports.zipDirectoryPipe = (path, filename, res) => {
archive.finalize()
})
}
}