From 1191fa84eaa90c30bf0294d10513de0aa8b22917 Mon Sep 17 00:00:00 2001 From: Alan Grainger <16197738+alangrainger@users.noreply.github.com> Date: Fri, 10 Oct 2025 11:54:12 +0800 Subject: [PATCH] Add default zip filename if none provided --- app/src/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/render.ts b/app/src/render.ts index b35f338..880c533 100644 --- a/app/src/render.ts +++ b/app/src/render.ts @@ -171,7 +171,7 @@ class Render { */ async downloadAll (res: Response, share: SharedLink) { res.setHeader('Content-Type', 'application/zip') - const title = sanitize(this.title(share)) + '.zip' + const title = (sanitize(this.title(share)) || 'photos') + '.zip' res.setHeader('Content-Disposition', `attachment; filename="${title}"`) const archive = archiver('zip', { zlib: { level: 6 } }) archive.pipe(res)