From 5b0110877745f1fcde4952737a93c07ef4a2a92d Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Sun, 11 Dec 2022 12:22:01 +0100 Subject: [PATCH] fix: zip doesn't contain file extension --- backend/src/file/file.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/file/file.controller.ts b/backend/src/file/file.controller.ts index 3bb6d61..ce50dc8 100644 --- a/backend/src/file/file.controller.ts +++ b/backend/src/file/file.controller.ts @@ -79,7 +79,7 @@ export class FileController { const zip = this.fileService.getZip(shareId); res.set({ "Content-Type": "application/zip", - "Content-Disposition": `attachment ; filename="pingvin-share-${shareId}"`, + "Content-Disposition": `attachment ; filename="pingvin-share-${shareId}.zip"`, }); return new StreamableFile(zip);