mirror of
https://github.com/plankanban/planka.git
synced 2025-12-20 17:25:39 +03:00
@@ -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));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user