Checks a declared extension of a file against an archive of file types.