An AngularJS service for validating files.