cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yeria Topalian (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-14004) Android SAVEDPHOTOALBUM - appends extra information to the end of FILE_URI '?value'
Date Wed, 28 Mar 2018 15:03:00 GMT
Yeria Topalian created CB-14004:
-----------------------------------

             Summary: Android SAVEDPHOTOALBUM - appends extra information to the end of FILE_URI
'?value'
                 Key: CB-14004
                 URL: https://issues.apache.org/jira/browse/CB-14004
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-plugin-camera
         Environment: Android devices (tested on Samsung, LG, Wiko, Huawei) 

Version Android : 4.4 to 7.0
            Reporter: Yeria Topalian


Hello,

 

When we upload a file from Library, the plugin appends a parameter with mark question like
that *picture_1522245584282.jpg?1522245512731*

 

Code example :  
{code:java}
// for Android Library
srcType = Camera.PictureSourceType.SAVEDPHOTOALBUM;
options = {
  quality: 100,
  width : 500,
  height : 500,
  targetWidth : 500,
  targetHeight : 500,
  destinationType: Camera.DestinationType.FILE_URI,
  sourceType: srcType,
  // encodingType: Camera.EncodingType.JPEG,
  mediaType: Camera.MediaType.PICTURE,
  allowEdit: true,
  correctOrientation: true  //Corrects Android orientation quirks
};
navigator.camera.getPicture(function cameraSuccess(imageUri) {
  // You may choose to copy the picture, save it somewhere, or upload.
  let fullPath = WebAppLocalServer.localFileSystemUrl(imageUri);
}, function cameraError(error) {
  console.debug(error.reason);
}, options);
{code}
 

We use that solution for the moment :
{code:java}
let fullPath = WebAppLocalServer.localFileSystemUrl(imageUri.split('?')[0]);
{code}
But we think it's not a good solution.

How can we prevent the addition of the mark question parameter ?

 

Thanks,

Yeria

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message