I\'m using javascript\'s FileReader and my customized function for reading an JPG-JPEG image, My problem is that how it\'s possible to detect the file extension through my c
There's not a direct interface to read the file extension. You have at least 2 options:
For the extension method it'd be something like:
var extension = fileName.match(/\.[0-9a-z]+$/i);