From 6762d0686f127a71ef2ed5550bcd5d3496551bfe Mon Sep 17 00:00:00 2001 From: VictoriqueMoe Date: Tue, 4 Jun 2024 21:18:45 +0100 Subject: [PATCH] use original filename as attachment --- src/controllers/serve/FileServerController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/serve/FileServerController.ts b/src/controllers/serve/FileServerController.ts index 63729f4..5366dee 100644 --- a/src/controllers/serve/FileServerController.ts +++ b/src/controllers/serve/FileServerController.ts @@ -33,7 +33,7 @@ export class FileServerController { // unknown> just send an octet stream and let the client figure it out res.contentType("application/octet-stream"); } - res.attachment(entry.fullFileNameOnSystem); + res.attachment(entry.originalFileName); res.send(buff); }