You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Shakhnazarov (JIRA)" <ji...@apache.org> on 2015/11/16 17:57:11 UTC

[jira] [Commented] (CB-8609) File-Transfer download to subfolder on Windows causes a FileProxy exception

    [ https://issues.apache.org/jira/browse/CB-8609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006918#comment-15006918 ] 

Sergey Shakhnazarov commented on CB-8609:
-----------------------------------------

[~ferryfax], can you please confirm if [this commit|https://github.com/apache/cordova-plugin-file-transfer/commit/569568f8b437ec0a0248b4017479b5421456e619] has fixed the issue?

> File-Transfer download to subfolder on Windows causes a FileProxy exception
> ---------------------------------------------------------------------------
>
>                 Key: CB-8609
>                 URL: https://issues.apache.org/jira/browse/CB-8609
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>         Environment: Windows 8.1 desktop
>            Reporter: Gary Howard
>              Labels: triaged, windows
>
> The nativeURI passed into FileProxy.resolveLocalFileSystemURI by FileTransfer.downloadOperation contains a Windows \ that causes the validName check to fail. As the fail function passed is null this gives an exception. 
> The FileTransfer.downloadOperation for Windows has a line of code that converts the storageFile.path to a nativeURL and part of this is to convert Windows \ to /. Unfortunately it only replaces the first one which is not enough when the path contains sub-folders. The fix is to use .replace(/\\/g, '/') instead of .replace('\\', '/').



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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