cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Becker (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-8583) WP8 FileTransfer.download does not overwrite existing file
Date Tue, 31 Mar 2015 17:22:53 GMT

    [ 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:22 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

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.

> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message