Add Features: allowing wekan master to set where the attachments stored on server instead of mongodb

This commit is contained in:
Sam X. Chen 2019-08-08 16:24:58 -04:00
parent aa6a588376
commit 13a13e8eca
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()) {