summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
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()) {