#254 #257 add config option to allow single image downloads but deny zip downloads

Co-authored-by: Tim Orme <TimothyOrme@gmail.com>
This commit is contained in:
Alan Grainger
2026-07-24 10:27:46 +12:00
parent 862ff269b7
commit af1a7d64c3
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ export async function gallery (res: Response, share: SharedLink, openItem?: numb
description: getConfigOption('ipp.gallery.showDescription', false) ? description(share) : '',
publicBaseUrl: toString(publicBaseUrl),
path: '/share/' + share.key,
showDownload: downloadAllowed,
showDownloadZip: downloadAllowed && !!getConfigOption('ipp.gallery.showDownloadZip', true),
showTitle: !!getConfigOption('ipp.gallery.showTitle', true),
expiryDate: expiryDate(share),
openItem,