0
Fork 0
mirror of https://github.com/stonith404/pingvin-share.git synced 2025-02-19 01:55:48 -05: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);
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);