Revert "use tempdirs"

This reverts commit a7d51cf21b.
This commit is contained in:
David Arnold 2020-10-21 12:51:04 -05:00 committed by Denis Perov
parent 80d0ec0898
commit 1cddd607ec
3 changed files with 12 additions and 20 deletions

View file

@ -5,8 +5,6 @@ import { createOnAfterUpload } from './lib/fsHooks/createOnAfterUpload';
import { createInterceptDownload } from './lib/fsHooks/createInterceptDownload';
import { createOnAfterRemove } from './lib/fsHooks/createOnAfterRemove';
const os = require('os');
let attachmentBucket;
if (Meteor.isServer) {
attachmentBucket = createBucket('attachments');
@ -33,7 +31,6 @@ const insertActivity = (fileObj, activityType) =>
Attachments = new FilesCollection({
debug: false, // Change to `true` for debugging
collectionName: 'attachments',
storagePath: os.tmpdir(),
allowClientCode: true,
onAfterUpload: function onAfterUpload(fileRef) {
createOnAfterUpload(attachmentBucket).call(this, fileRef);