Hotfix 2 crashy boogaloo
This commit is contained in:
24
app/imports/api/files/client/s3FileStorage.js
Normal file
24
app/imports/api/files/client/s3FileStorage.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// https://github.com/VeliovGroup/Meteor-Files/blob/master/docs/aws-s3-integration.md
|
||||
import { FilesCollection } from 'meteor/ostrio:files';
|
||||
|
||||
const createS3FilesCollection = function ({
|
||||
collectionName,
|
||||
storagePath,
|
||||
onBeforeUpload,
|
||||
onAfterUpload,
|
||||
debug,// = !Meteor.isProduction,
|
||||
allowClientCode = false,
|
||||
}) {
|
||||
const collection = new FilesCollection({
|
||||
collectionName,
|
||||
storagePath,
|
||||
onBeforeUpload,
|
||||
onAfterUpload,
|
||||
debug,
|
||||
allowClientCode,
|
||||
});
|
||||
|
||||
return collection;
|
||||
}
|
||||
|
||||
export { createS3FilesCollection };
|
||||
Reference in New Issue
Block a user