cara mendapatkan ekstensi file dalam indeks terakhir javascript
var extension = fileName.substring(fileName.lastIndexOf('.')+1);
Fancy Fly
var extension = fileName.substring(fileName.lastIndexOf('.')+1);
var fileName = "myDocument.pdf";
var fileExtension = fileName.split('.').pop(); //"pdf"