file upload validator for event