javascript - file:// prefix is missing in the returned URI of navigator.camera.getPicture -
my cordova mobile app has file chooser uses following code:
navigator.camera.getpicture(photocapturedsuccess(fileuri), photocapturedfail, { quality: 50, destinationtype: navigator.camera.destinationtype.file_url, sourcetype: navigator.camera.picturesourcetype.savedphotoalbum, correctorientation: true }); the fileuri returned navigator.camera.getpicture() file:///storage/emulated/0/dcim/camera/img_20041615_135137.jpg working fine 1 day feature stopped working. on debugging code found fileuri missing file:// prefix. ie. uri starts /storage/emulated clue happened?
thanks
Comments
Post a Comment