From 0f272b1e6613274540f74ffa248c69b970d8e57d Mon Sep 17 00:00:00 2001 From: David Arnold Date: Wed, 16 Sep 2020 20:22:20 -0500 Subject: [PATCH] fixup! Ref: Attachments to use modern gridfs (rm localstore) --- models/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/attachments.js b/models/attachments.js index ce0e04235..614dd3332 100644 --- a/models/attachments.js +++ b/models/attachments.js @@ -31,7 +31,7 @@ const insertActivity = (fileObj, activityType) => Attachments = new FilesCollection({ debug: false, // Change to `true` for debugging collectionName: 'attachments', - allowClientCode: false, + allowClientCode: true, onAfterUpload: function onAfterUpload(fileRef) { createOnAfterUpload(attachmentBucket).call(this, fileRef); // If the attachment doesn't have a source field