incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimitri Adamou (JIRA)" <>
Subject [jira] [Created] (CB-837) CaptureCB - mediaFile.fullPath does not resolve to file
Date Tue, 29 May 2012 04:33:23 GMT
Dimitri Adamou created CB-837:

             Summary: CaptureCB - mediaFile.fullPath does not resolve to file
                 Key: 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:!default.jspa
For more information on JIRA, see:


View raw message