javascript - Invalid URI - Nativescript image-picker -
i attempting use nativescript image-picker plugin, when trying retrieve selected file's file uri
receive following error:
error: java.lang.illegalargumentexception: invalid uri: content/images/media/1072602
has seen before? below code using pick images.
exports.pickimages = function(){ var context = imagepicker.create({ mode: "multiple" }); context .authorize() .then(function() { return context.present(); }) .then(function(selection) { selection.foreach(function(selected) { console.log(selected['fileuri']); }); }).catch(function (e) { console.log(e); }); }
Comments
Post a Comment