You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allowClientCode:true, // Required to let you remove uploaded file
50
49
onBeforeUpload(file) {
51
50
// Allow upload files under 10MB, and only in png/jpg/jpeg formats
@@ -62,12 +61,12 @@ if (Meteor.isClient) {
62
61
63
62
if (Meteor.isServer) {
64
63
Meteor.publish('files.images.all', () => {
65
-
returnImages.collection.find({});
64
+
returnimagesCollection.collection.find({});
66
65
});
67
66
}
68
67
```
69
68
70
-
__Note:__ If you don't use Mongo Collection instances (`dburles:mongo-collection-instances`), then the `Images` variable must be attached to *Global* scope. And has same name (*case-sensitive*) as `collectionName` option passed into `FilesCollection#insert({collectionName: 'Images'})` method, `Images` in our case.
69
+
__Note:__ If you don't use Mongo Collection instances (`dburles:mongo-collection-instances`), then the `imagesCollection` variable must be attached to *Global* scope. And has same name (*case-sensitive*) as `collectionName` option passed into `FilesCollection#insert({collectionName: 'images'})` method, `images` in our case.
71
70
72
71
To start using `dburles:mongo-collection-instances` simply install it:
0 commit comments