cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vldmrrr <...@git.apache.org>
Subject [GitHub] cordova-plugin-camera pull request: CB-8498: On windows import fro...
Date Wed, 04 Mar 2015 14:50:04 GMT
Github user vldmrrr commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-camera/pull/64#discussion_r25779360
  
    --- Diff: src/windows/CameraProxy.js ---
    @@ -165,7 +165,16 @@ module.exports = {
     
                                 var storageFolder = Windows.Storage.ApplicationData.current.localFolder;
                                 file.copyAsync(storageFolder, file.name, Windows.Storage.NameCollisionOption.replaceExisting).then(function
(storageFile) {
    -                                successCallback(URL.createObjectURL(storageFile));
    +                                var res;
    +                                if (destinationType == Camera.DestinationType.NATIVE_URI)
{
    +                                    res = storageFile.path
    +                                        .replace(/\\/g, '/')
    +                                        .replace(':','%3A');
    --- End diff --
    
    Colon is invalid character in URI. This replacement makes returned URI compatible with
native URI suitable for File plugin.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message