mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 16:30:13 +01:00
Fix Validate attachment error at PR Meteor files 2.2.1 fixes + attachment view.
Thanks to xet7 ! Fixes #4640
This commit is contained in:
parent
2cd8cfc9b9
commit
c23f5dc858
1 changed files with 2 additions and 2 deletions
|
|
@ -192,13 +192,13 @@ if (Meteor.isServer) {
|
||||||
check(fileObjId, String);
|
check(fileObjId, String);
|
||||||
check(storageDestination, String);
|
check(storageDestination, String);
|
||||||
|
|
||||||
validateAttachment(fileObjId);
|
Meteor.defer(() => Meteor.call('validateAttachment', fileObjId));
|
||||||
|
|
||||||
const fileObj = Attachments.findOne({_id: fileObjId});
|
const fileObj = Attachments.findOne({_id: fileObjId});
|
||||||
|
|
||||||
if (fileObj) {
|
if (fileObj) {
|
||||||
console.debug("Validation of uploaded file completed: file " + fileObj.path + " - storage destination " + storageDestination);
|
console.debug("Validation of uploaded file completed: file " + fileObj.path + " - storage destination " + storageDestination);
|
||||||
moveAttachmentToStorage(fileObjId, storageDestination);
|
Meteor.defer(() => Meteor.call('moveAttachmentToStorage', fileObjId, storageDestination));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue