Meteor collectionfs insert server side

前端 未结 2 1168
滥情空心
滥情空心 2020-12-30 17:17

hi everyone i using collectionfs + gridfs + cfs filesystem, on collectionfs documentation i find how to insert file on client side like this :

Template.myFo         


        
2条回答
  •  长发绾君心
    2020-12-30 18:04

    make sure to apply allow and deny rules like so:

    Images.allow({
      insert: function() { return true },
      update: function() { return true },
      remove: function() { return false }
    });
    

    Update must also be applied if using streaming

提交回复
热议问题