How do i add userid to image uploads


iam using cfs:filesystem for image uploads
iam having hard time showing the gallery of a particular user, how can i do that
can i add userid to this cfs collection “cfs.images.filerecord”

i have read the manual but its not very useful tried various tricks but in vain, no help available on internet

tell me any trick where i can show image gallery of a particular user
can any 1 help


you have to “link” the user id with the uploaded image, maybe you can use something like this:

Images.insert(file, function (err, fileObj) {
    var userId = Meteor.userId();
    Meteor.users.update(userId, {$set: {"imageName": "my.png"}});