You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "diwas (JIRA)" <ji...@apache.org> on 2015/01/02 16:31:13 UTC

[jira] [Comment Edited] (CB-8235) phonegap plugin getpicture method fails on android when filename has spaces

    [ https://issues.apache.org/jira/browse/CB-8235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14262938#comment-14262938 ] 

diwas edited comment on CB-8235 at 1/2/15 3:30 PM:
---------------------------------------------------

Thanks Andrew, this issue occurs when i choose a filename with spaces from dropbox.
I further elaborate the issue in the link below. hopefully you are aware of the issue.
http://stackoverflow.com/questions/27744156/phonegap-camera-getpicture-fails-in-android-when-the-image-filename-contains-spa




was (Author: diwas2020):
Thanks Andrew, this issue occurs when i choose a filename with spaces from dropbox or google drive. 
I further elaborate the issue in the link below. hopefully you are aware of the issue.
http://stackoverflow.com/questions/27744156/phonegap-camera-getpicture-fails-in-android-when-the-image-filename-contains-spa



> 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, 4.1.2-0.22.10 cli version, testing on Android 4.x, below is the 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org