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

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -