Being a novice in the world of meteor, I am currently working on defining an mp3 collection and then uploading music to it from the admin page. The packages that are installed include:
cfs:standard-packages
cfs:gridfs
cfs:filesystem
1)
I have successfully defined the collection both on the client and the server side, however, I am unable to locate it in RoboMongo. I seem to be missing something crucial.
AudioCollection = new FS.Collection("audiocollection", {
stores: [new FS.Store.GridFS("audiocollection")]
});
2) I need assistance with handling my template event for when the music file is uploaded by an admin and then inserted into my AudioCollection.
Template.example_music.events({
'click #example':function(e,t){
//This is a simple event for uploading files into mongo.
}
})