title: How to get file extension in Angular2
body: <p>My Requirement is to upload only files that ends with.pdf extension in Angular 2 is there any method to find the extension or like any split method in java.</p>