get file extention frim file name in js code example
Example: how to get file extension in javascript last index
var extension = fileName.substring(fileName.lastIndexOf('.')+1);
var extension = fileName.substring(fileName.lastIndexOf('.')+1);