From 13a13e8eca67eea4bc8a44dad8a0de52035154ba Mon Sep 17 00:00:00 2001 From: "Sam X. Chen" Date: Thu, 8 Aug 2019 16:24:58 -0400 Subject: Add Features: allowing wekan master to set where the attachments stored on server instead of mongodb --- client/components/cards/attachments.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/components/cards/attachments.js') diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js index 2cf68c59..d60169c3 100644 --- a/client/components/cards/attachments.js +++ b/client/components/cards/attachments.js @@ -66,6 +66,9 @@ Template.cardAttachmentsPopup.events({ file.cardId = card._id; } file.userId = Meteor.userId(); + if (file.original) { + file.original.name = f.name; + } const attachment = Attachments.insert(file); if (attachment && attachment._id && attachment.isImage()) { -- cgit v1.2.3-1-g7c22