Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B488AC261 for ; Tue, 29 May 2012 04:33:29 +0000 (UTC) Received: (qmail 55773 invoked by uid 500); 29 May 2012 04:33:29 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 54994 invoked by uid 500); 29 May 2012 04:33:27 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 54635 invoked by uid 99); 29 May 2012 04:33:24 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 May 2012 04:33:24 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id E5E44142859 for ; Tue, 29 May 2012 04:33:23 +0000 (UTC) Date: Tue, 29 May 2012 04:33:23 +0000 (UTC) From: "Dimitri Adamou (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1067249460.9780.1338266003945.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (CB-837) CaptureCB - mediaFile.fullPath does not resolve to file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dimitri Adamou created CB-837: --------------------------------- Summary: CaptureCB - mediaFile.fullPath does not resolve to file Key: CB-837 URL: https://issues.apache.org/jira/browse/CB-837 Project: Apache Cordova Issue Type: Bug Components: CordovaJS Affects Versions: 1.7.0 Environment: Tested on iOS Reporter: Dimitri Adamou Assignee: Filip Maj Priority: Minor Hey there, Simply put here is an example navigator.device.capture.captureAudio(successCB, error, {limit: 1}); function successCB(mediaFile) { window.resolveLocalFileSystemURI(mediaFile[0].fullPath, gotFileEntry, fsFail); } function fsFail(error) { alert('we failed with code ' + error.code); //5 } The issue is mediaFile[0].fullPath lacks file://localhost being appended. Is this intentional? Simple work around is just to add it in using var path = mediaFile[0].fullPath if(path.indexOf("file://localhost") == -1) path -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira