summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-08-08 23:43:39 +0300
committerGitHub <noreply@github.com>2019-08-08 23:43:39 +0300
commit520ae551c643885d0d5b8ba39cd8de0119f6ef11 (patch)
treedc4df60552432fbc5d531802b64bc734c3a97f6b /client
parentd5d75ae7b8be606b6253afaf0b5bfebbbe7d8131 (diff)
parent13a13e8eca67eea4bc8a44dad8a0de52035154ba (diff)
downloadwekan-520ae551c643885d0d5b8ba39cd8de0119f6ef11.tar.gz
wekan-520ae551c643885d0d5b8ba39cd8de0119f6ef11.tar.bz2
wekan-520ae551c643885d0d5b8ba39cd8de0119f6ef11.zip
Merge pull request #2603 from whowillcare/master
Add Features: allowing wekan master to set where the attachments stor…
Diffstat (limited to 'client')
-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()) {