mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 07:09:44 +02:00
parent
e29c9e6dda
commit
b0b6587eee
2 changed files with 7 additions and 11 deletions
|
@ -61,7 +61,9 @@ module.exports = {
|
|||
throw Errors.ATTACHMENT_NOT_FOUND;
|
||||
}
|
||||
|
||||
this.res.setHeader('Content-Disposition', `inline; ${inputs.filename}`);
|
||||
this.res.type(attachment.filename);
|
||||
this.res.set('Cache-Control', 'private, max-age=900'); // TODO: move to config
|
||||
|
||||
return exits.success(fs.createReadStream(filePath));
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue