You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "sandeep paliwal (JIRA)" <ji...@apache.org> on 2014/03/05 12:24:42 UTC
[jira] [Created] (CB-6167) Camera API saveToPhotoAlbum option on
ios returns temp file URI
sandeep paliwal created CB-6167:
-----------------------------------
Summary: Camera API saveToPhotoAlbum option on ios returns temp file URI
Key: CB-6167
URL: https://issues.apache.org/jira/browse/CB-6167
Project: Apache Cordova
Issue Type: Bug
Components: CordovaJS
Affects Versions: 3.3.0
Environment: IOS
Reporter: sandeep paliwal
Priority: Minor
On ios when using camera getPicture with saveToPhotoAlbum option and destinationType as FileURI, although the captured image is saved to photo album but the returned file URI point to the temp file. It should actually return the URI of image in photo album. Sample code here..
function onSuccess(imageData) {
alert(JSON.stringify(imageData));
}
function onFail(message) {
alert('Failed because: ' + message);
}
navigator.camera.getPicture(onSuccess, onFail, { quality: 20,
destinationType: Camera.DestinationType.FILE_URI,saveToPhotoAlbum: true
});
--
This message was sent by Atlassian JIRA
(v6.2#6252)