Hi,
I tried the following code
Images = new FS.Collection("images", {
stores: [
new FS.Store.FileSystem("original"),
],
filter: filter
});
Images.allow({
insert:function(userId,project){
return false;
},
update:function(userId,project,fields,modifier){
return false;
},
remove:function(userId,project){
return false;
},
download:function(){
return false;
}
});
and did an insert on client side:
Images.insert(event.target.files[0], function (err, fileObj) {
});
The image is saved on the server and displayed correctly. Shouldn’t the image be rejected because of the insert rule?