Meteor-Files: Cannot read property 'FilesCollection' of undefined
Hi problem with Meteor-Files using with Nova inside packages
meteor 1.3.2_4 (need for nova) Meteor-Files v1.6.7
i have error
Cannot read property 'FilesCollection' of undefined
import { FilesCollection } from 'meteor/ostrio:files';
var Images;
Images = new FilesCollection({
debug: true,
collectionName: 'Images',
allowClientCode: false, // Disallow remove files from Client
onBeforeUpload: function (file) {
// Allow upload files under 10MB, and only in png/jpg/jpeg formats
if (file.size <= 10485760 && /png|jpg|jpeg/i.test(file.extension)) {
return true;
} else {
return 'Please upload image, with size equal or less than 10MB';
}
}
});
if (Meteor.isServer) {
Images.denyClient();
Meteor.publish('files.images.all', function () {
return Images.find().cursor;
});
Meteor.publish('files.images.all', () => Images.find().cursor);
} else {
Meteor.subscribe('files.images.all');
}
export default Images ;
i try change to
Images = new Meteor.Files({
but not worked
and not worked update to coffeescript@=1.1.4
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 25 (22 by maintainers)
Commits related to this issue
- v1.6.8 - Support for Meteor@1.4.0.1 - Fix #172 (Get `Accounts` from `Package['accounts-base']`) - Fix #165 (Add explicit `mongo` package dependency) - Package dependencies update - Demo App: Min... — committed to veliovgroup/Meteor-Files by dr-dimitru 8 years ago
- Merge pull request #173 from VeliovGroup/dev v1.6.8 - Support for Meteor@1.4.0.1 - Fix #172 (Get `Accounts` from `Package['accounts-base']`) - Fix #165 (Add explicit `mongo` package dependency)... — committed to veliovgroup/Meteor-Files by dr-dimitru 8 years ago
I’ll merge and publish new version of MF today, please hold on
Add
ecamscript
and/ormodules
package(s)sorry me to I am not sure that disappeared, tonight check.
i solve, after put ‘mongo’ to https://github.com/VeliovGroup/Meteor-Files/blob/master/package.js