add collection enforcement
changes found by peer review
Merge pull request #834 from nla/js-noncm-upload

add collection enforcement