Added client-side file validator

This pull request is proposal for #4356 Client-side file validator