You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2015/05/19 02:32:40 UTC

cordova-plugin-camera git commit: Patch for CB-8498, this closes #64

Repository: cordova-plugin-camera
Updated Branches:
  refs/heads/master a830b3e08 -> 33ffb17c9


Patch for CB-8498, this closes #64


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/33ffb17c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/33ffb17c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/33ffb17c

Branch: refs/heads/master
Commit: 33ffb17c9780db93e44bc9daaa284d4809940a95
Parents: a830b3e
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon May 18 17:32:14 2015 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon May 18 17:32:14 2015 -0700

----------------------------------------------------------------------
 src/windows/CameraProxy.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/33ffb17c/src/windows/CameraProxy.js
----------------------------------------------------------------------
diff --git a/src/windows/CameraProxy.js b/src/windows/CameraProxy.js
index 3d6cda3..eae4c0c 100644
--- a/src/windows/CameraProxy.js
+++ b/src/windows/CameraProxy.js
@@ -176,7 +176,14 @@ function takePictureFromFileWP(successCallback, errorCallback, args) {
                 else {
                     var storageFolder = Windows.Storage.ApplicationData.current.localFolder;
                     file.copyAsync(storageFolder, file.name, Windows.Storage.NameCollisionOption.replaceExisting).done(function (storageFile) {
-                        successCallback(URL.createObjectURL(storageFile));
+                        if(destinationType == Camera.DestinationType.NATIVE_URI) {
+                            successCallback("ms-appdata:///local/" + storageFile.name);
+                        }
+                        else {
+                            successCallback(URL.createObjectURL(storageFile));
+                        }
+
+                        
                     }, function () {
                         errorCallback("Can't access localStorage folder.");
                     });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org