Skip to content

Commit

Permalink
Change: no compression when downloading library item as zip file
Browse files Browse the repository at this point in the history
  • Loading branch information
nichwall committed Dec 7, 2024
1 parent 3b4a5b8 commit 6172988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/utils/zipHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -49,4 +49,4 @@ module.exports.zipDirectoryPipe = (path, filename, res) => {

archive.finalize()
})
}
}

0 comments on commit 6172988

Please sign in to comment.