This code also masks the recognized extensions from the validator that will be plugged as the next component to this. author: Kohsuke Kawaguchi