From d79403e352498df4bf0a8a2dbc8498ba957b5ea4 Mon Sep 17 00:00:00 2001 From: macdonst Date: Tue, 29 May 2012 15:55:21 -0400 Subject: [PATCH] CB-837: CaptureCB - mediaFile.fullPath does not resolve to file --- framework/src/org/apache/cordova/Capture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/Capture.java b/framework/src/org/apache/cordova/Capture.java index ce7e9de0..9809ed11 100644 --- a/framework/src/org/apache/cordova/Capture.java +++ b/framework/src/org/apache/cordova/Capture.java @@ -353,7 +353,7 @@ public class Capture extends Plugin { try { // File properties obj.put("name", fp.getName()); - obj.put("fullPath", fp.getAbsolutePath()); + obj.put("fullPath", "file://" + fp.getAbsolutePath()); // Because of an issue with MimeTypeMap.getMimeTypeFromExtension() all .3gpp files // are reported as video/3gpp. I'm doing this hacky check of the URI to see if it