mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-31 12:42:50 +08:00
Patch for CB-8498, this closes #64
This commit is contained in:
parent
a830b3e08b
commit
33ffb17c97
@ -176,7 +176,14 @@ function takePictureFromFileWP(successCallback, errorCallback, args) {
|
|||||||
else {
|
else {
|
||||||
var storageFolder = Windows.Storage.ApplicationData.current.localFolder;
|
var storageFolder = Windows.Storage.ApplicationData.current.localFolder;
|
||||||
file.copyAsync(storageFolder, file.name, Windows.Storage.NameCollisionOption.replaceExisting).done(function (storageFile) {
|
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 () {
|
}, function () {
|
||||||
errorCallback("Can't access localStorage folder.");
|
errorCallback("Can't access localStorage folder.");
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user