summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-08-08 16:24:58 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-08-08 16:24:58 -0400
commit13a13e8eca67eea4bc8a44dad8a0de52035154ba (patch)
treec8c2448502d5e1d0f9f50f76c813875d0454ccc2 /client/components/cards
parentaa6a588376b0961f4a246958d6e9e3f1a020fd1d (diff)
downloadwekan-13a13e8eca67eea4bc8a44dad8a0de52035154ba.tar.gz
wekan-13a13e8eca67eea4bc8a44dad8a0de52035154ba.tar.bz2
wekan-13a13e8eca67eea4bc8a44dad8a0de52035154ba.zip
Add Features: allowing wekan master to set where the attachments stored on server instead of mongodb
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/attachments.js3
1 files changed, 3 insertions, 0 deletions
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()) {