Skip to content

Commit

Permalink
Merge pull request #3714 from nichwall/zip_download_speedup
Browse files Browse the repository at this point in the history
Change: no compression when downloading library item as zip file
  • Loading branch information
advplyr authored Dec 25, 2024
2 parents e8505cb + 6172988 commit d811ec3
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 d811ec3

Please sign in to comment.