Skip to content

Commit

Permalink
use original filename as attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoriqueMoe committed Jun 4, 2024
1 parent 7313859 commit 6762d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/serve/FileServerController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6762d06

Please sign in to comment.