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
Post a Comment