cordova - Phonegap 3.5 - Android 4.4 - Get file extension from the getPicture() function -


in android versions prior 4.4, when used "photolibrary" option getpicture function, return file file extension this:

navigator.camera.getpicture(function(fileuri) {     var filename = imageuri.substr(fileuri.lastindexof('/') + 1; // used have extension attached     .     .     . 

in android 4.4, seems has been removed. substring no longer includes extenstion. can in callback or phonegap oversight?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -