My collection looks something like this
ProfileImages = new FS.Collection("ProfileImages", {
stores: [new FS.Store.FileSystem("profileImages", {path: "~/uploads"})]
});
When I try to store it in a variable it’s not working. Code is something like this:
file = ProfileImages.findOne({_id: fileid});