diwas created CB-8235:
-------------------------
Summary: phonegap plugin getpicture method fails on android when
filename has spaces
Key: CB-8235
URL: https://issues.apache.org/jira/browse/CB-8235
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 3.5.0
Environment: android
Reporter: diwas
Priority: Critical
I'm using the latest version of the phonegap camera plugin (i.e. 0.3.4) and
3.5.0 of phonegap Build, testing on Android, below is my code for getting
images:
navigator.camera.getPicture(uploadPhoto,
function(message) { console.log('get picture failed');alert(message) },
{ quality: 50, targetWidth: 400, targetHeight: 400,
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY }
);
when i choose an image where its filename without spaces (e.g. test.jpg), the
uploadPhoto method is called successfully, but when i choose an image where its
filename with space (test 2.jpg), error function is called back with the alert
message "Unable to create bitmap!".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]