Following java script unction can be used to get the extension of a uploaded file.
Cheers
Samitha
function getFileExtension(fileName) { var extension = /^.+\.([^.]+)$/.exec(fileName); returnextension== null ? "" :extension[1]; }
Cheers
Samitha