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