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

Don Becker edited comment on CB-8583 at 3/31/15 5:20 PM:
---------------------------------------------------------

https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/windows/FileTransferProxy.js#L271

That line appears to be the issue, specifically, this

    Windows.Storage.CreationCollisionOption.generateUniqueName

The plugin should probably use 

    Windows.Storage.CreateCollisionOption.replaceExisting

Developers can check to see if the file already exists on their own and create 
a new name if they need, rather than having the plugin do this as a default 
behavior.


was (Author: psyon):
https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/windows/FileTransferProxy.js#L271

That line appears to be the issue, specifically, this

    Windows.Storage.CreationCollisionOption.generateUniqueName

> WP8 FileTransfer.download does not overwrite existing file
> ----------------------------------------------------------
>
>                 Key: CB-8583
>                 URL: https://issues.apache.org/jira/browse/CB-8583
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>    Affects Versions: 0.4.8
>         Environment: Windows Phone 8.1.  Lumia 530
>            Reporter: Don Becker
>            Assignee: Vladimir Kotikov
>
> FileTransfer.download() does not overwrite an existing file on Windows Phone 
> 8, as it does on Android and iOS.  The function calls the successCallback, 
> but the target file is not updated with the new downloaded version.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to