1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-10-02 01:20:11 +02:00

fix: zip doesn't contain file extension

This commit is contained in:
Elias Schneider 2022-12-11 12:22:01 +01:00
parent 3d1d4d0fc7
commit 5b01108777

View File

@ -79,7 +79,7 @@ export class FileController {
const zip = this.fileService.getZip(shareId); const zip = this.fileService.getZip(shareId);
res.set({ res.set({
"Content-Type": "application/zip", "Content-Type": "application/zip",
"Content-Disposition": `attachment ; filename="pingvin-share-${shareId}"`, "Content-Disposition": `attachment ; filename="pingvin-share-${shareId}.zip"`,
}); });
return new StreamableFile(zip); return new StreamableFile(zip);