Merge pull request #2603 from whowillcare/master

Add Features: allowing wekan master to set where the attachments stor…
This commit is contained in:
Lauri Ojansivu 2019-08-08 23:43:39 +03:00 committed by GitHub
commit 520ae551c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 15 deletions

View file

@ -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()) {