[ 
https://issues.apache.org/jira/browse/CB-6167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard B Knoll updated CB-6167:
--------------------------------
    Description: 
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..
{code:javascript}
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
                                });
{code}

  was:
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
                                });


> 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: Plugin Camera
>    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..
> {code:javascript}
> 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
>                               });
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to