mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Add Features: allowing wekan master to set where the attachments stored on server instead of mongodb
This commit is contained in:
parent
aa6a588376
commit
13a13e8eca
5 changed files with 33 additions and 15 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue