💄 backend: more appropriate zip download default file name (#600)
This commit is contained in:
committed by
ericlinagora
parent
2f3a4c2302
commit
3e6228d3e5
@@ -486,6 +486,7 @@ export class DocumentsController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const archive = await globalResolver.services.documents.documents.createZip(ids, context);
|
const archive = await globalResolver.services.documents.documents.createZip(ids, context);
|
||||||
|
reply.raw.setHeader("content-disposition", 'attachment; filename="twake_drive.zip"');
|
||||||
|
|
||||||
archive.on("finish", () => {
|
archive.on("finish", () => {
|
||||||
reply.status(200);
|
reply.status(200);
|
||||||
|
|||||||
Reference in New Issue
Block a user