how to check the extension of file name in javascript code example
Example: how to get the extension from filename using javascript
var ext = fileName.substr(fileName.lastIndexOf('.') + 1);
var ext = fileName.substr(fileName.lastIndexOf('.') + 1);