Hi ! I am a beginner in Meteor and i would like to insert a video file into a collectionFS and store it thanks to gridFS.
Videos = new Mongo.Collection("videos"); VideosFS = new FS.Collection("VideosFS", { stores: [new FS.Store.GridFS('VideosFS')] });
Can anyone help me to understand how to insert the video into the collection on the server side ?
As i already have my video located in the server file system ( /private/videos ), I would like to call the insert in the server side in order to add it to my collection like that :
` FS.Utility.eachFile(event, function(file) {
Images.insert(file, function (err, fileObj) {
});
Thanks in advance for your reply