mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
ref: Collapse image data into one column
This commit is contained in:
parent
fe9fdc0191
commit
39fec45a7f
10 changed files with 102 additions and 86 deletions
|
@ -53,7 +53,7 @@ module.exports = {
|
|||
}
|
||||
|
||||
this.res.type(attachment.filename);
|
||||
if (!attachment.isImage && path.extname(attachment.filename) !== '.pdf') {
|
||||
if (!attachment.image && path.extname(attachment.filename) !== '.pdf') {
|
||||
this.res.set('Content-Disposition', 'attachment');
|
||||
}
|
||||
this.res.set('Cache-Control', 'private, max-age=900'); // TODO: move to config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue