Published
- 1 min read
how to get file extension in javascript last index
The solution for this is noted below
how to get file extension in javascript last index
Solution
var extension = fileName.substring(fileName.lastIndexOf('.') + 1)
Try other methods by searching on the site. That is if this doesn’t work