cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yeria Topalian (JIRA)" <>
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
                 Key: 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



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


Code example :  
// 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
}; cameraSuccess(imageUri) {
  // You may choose to copy the picture, save it somewhere, or upload.
  let fullPath = WebAppLocalServer.localFileSystemUrl(imageUri);
}, function cameraError(error) {
}, options);

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

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







This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message