Add #16 Download all files as zip

This commit is contained in:
Alan Grainger
2024-11-15 15:48:12 +01:00
parent 4a546419d7
commit 9e1970af4f
9 changed files with 85 additions and 16 deletions
+6 -2
View File
@@ -94,8 +94,12 @@ class Immich {
return
}
// Everything is ok - output the link page
if (link.assets.length === 1) {
// Everything is ok - output the shared link data
if (request.mode === 'download' && getConfigOption('ipp.allowDownloadAll', false)) {
// Download all assets as a zip file
await render.downloadAll(res, link)
} else if (link.assets.length === 1) {
// This is an individual item (not a gallery)
log('Serving link ' + request.key)
const asset = link.assets[0]