cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-9969) Windows filetransfer upload error deletes original file.
Date Mon, 30 Nov 2015 07:42:10 GMT

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

ASF GitHub Bot commented on CB-9969:
------------------------------------

Github user daserge commented on the pull request:

    https://github.com/apache/cordova-plugin-file-transfer/pull/115#issuecomment-160545729
  
    @dblotsky, `getFile` does work with absolute paths - it successfully resolves `/testFile.txt`
for example as well as relative (to the fs root) `testFile.txt` so I think the bug was in
the test and not in this function (it works with filesystem' abstract paths rather than with
native ones).
    I also don't think it should work with nativeURL - there is `resolveLocalFileSystemURL`
for this case.


> Windows filetransfer upload error deletes  original file. 
> ----------------------------------------------------------
>
>                 Key: CB-9969
>                 URL: https://issues.apache.org/jira/browse/CB-9969
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>         Environment: windows
>            Reporter: Wema Wuyts
>            Assignee: Sergey Shakhnazarov
>              Labels: reproduced, triaged
>
> The upload function on windows has an onerror handler:
>   getTransferError.then(function(transferError) {
>     storageFile.deleteAsync().then(function() {
>     errorCallback(transferError);
>   });
> });
> think this should be :
>  getTransferError.then(function(transferError) {
>      errorCallback(transferError);
> });



--
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