javascript - Meteor Collectionfs, how to save all images -


i want save images in imagestore, saving, uploading , on works fine, "little" problem. code, go through images , want save them.

jquery('img').each(function () {    fs.utility.eachfile(event, function(file) {       images.insert(file, function (err, fileobj) {       });    });  }); 

the problem, i'm getting images image, not file insertion method need files. how can convert image file ?


Comments