Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0AA42D4F8 for ; Mon, 12 Nov 2012 14:15:14 +0000 (UTC) Received: (qmail 235 invoked by uid 500); 12 Nov 2012 14:15:13 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 207 invoked by uid 500); 12 Nov 2012 14:15:13 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 164 invoked by uid 500); 12 Nov 2012 14:15:12 -0000 Delivered-To: apmail-incubator-callback-dev@incubator.apache.org Received: (qmail 161 invoked by uid 99); 12 Nov 2012 14:15:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2012 14:15:12 +0000 Date: Mon, 12 Nov 2012 14:15:12 +0000 (UTC) From: "Simon MacDonald (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1349359595.100469.1352729712441.JavaMail.jiratomcat@arcas> In-Reply-To: <1890164906.100110.1352721552637.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CB-1835) Camera.getPicture gives error when get a picture from photo library with spaces in its name on Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495279#comment-13495279 ] Simon MacDonald commented on CB-1835: ------------------------------------- The call: MimeTypeMap map = MimeTypeMap.getSingleton(); return map.getMimeTypeFromExtension(MimeTypeMap.getFileExtensionFromUrl(filename)); returns "null" if the filename has a space in it which is just a pain in the, hey, hey kids! I was using that check to make sure someone did not try to get a text file using getPicture. Guarding against the false negative now. Next step I need to take a look at when something like DropBox returns a url encoded file URI. > Camera.getPicture gives error when get a picture from photo library with spaces in its name on Android > ------------------------------------------------------------------------------------------------------ > > Key: CB-1835 > URL: https://issues.apache.org/jira/browse/CB-1835 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 2.2.0 > Environment: Android > Reporter: Gerardo Parra > Assignee: Simon MacDonald > > When you use Camera.getPicture to get a photo from photo library, it returns error if the file name has spaces in its name. In my case, I use a Samsung Galaxy S SCL smartphone and the camera saves the photos using spaces. If I try to get a picture without spaces, it returns successfully the file. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira