Meteor-CollectionFS
Meteor-CollectionFS copied to clipboard
DOCS: Example is broken, allow() should be for 'update' and not 'insert'
This example in the DOCS:
Images.allow({
'insert': function () {
// add custom authentication code here
return true;
}
});
Returns the error in browser console:
Access denied. No allow validators set on restricted collection for method 'update'. [403]
The correct example would be replacing 'insert' fro 'update' as the error suggests.
Images.allow({
update: function () {
// add custom authentication code here
return true;
},
insert: function () {
// add custom authentication code here
return true;
}
});
The example also generates a warning, which I could not resolve:
The provided value 'undefined' is not a valid enum value of type XMLHttpRequestResponseType.
Lastly, the DOCS should also mention needing to install cfs:filesystem to complete this example.
The example also generates a warning, which I could not resolve
same here
Yep, me too!
For the warning: https://github.com/CollectionFS/Meteor-CollectionFS/issues/688
Thanks. I was also getting the referenced error, and this seems to have fixed things up. I still have the warning. There doesn't seem to be a fix for that yet.
I am getting this too!
I have the same problem
cfs:standard-packages
cfs:gridfs
yogiben:autoform-file
the same
cfs:standard-packages
cfs:filesystem
yogiben:autoform-file
Same issue here. The files are not getting uploaded!
It looks like jpg and png works. But svg and gif does not. But inn all cases I see the console error.
1+
This fixed my issue. Thanks lpgeiger