Merge pull request #3714 from nichwall/zip_download_speedup

Change: no compression when downloading library item as zip file
This commit is contained in:
advplyr 2024-12-25 08:59:43 -06:00 committed by GitHub
commit d811ec3806
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@ module.exports.zipDirectoryPipe = (path, filename, res) => {
res.attachment(filename) res.attachment(filename)
const archive = archiver('zip', { 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 // listen for all archive data to be written