1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-07-02 07:20:38 +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);
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);