ManuelPaulo created CB-7073:
-------------------------------

             Summary: Do not overwrite existing file on transfer fail
                 Key: CB-7073
                 URL: https://issues.apache.org/jira/browse/CB-7073
             Project: Apache Cordova
          Issue Type: Improvement
          Components: Plugin File Transfer
            Reporter: ManuelPaulo
            Priority: Trivial


fileTransfer is used a lot to update files.

Using Network Link Conditioner on iOS, I simulated a 100% loss network and when 
the file transfer fails, the stored local life gets deleted. fileTransfer 
should not overwrite the existing file in case of a failed transfer.

My suggestion would be a cache mechanism like the OS's. Start downloading to 
.tmp file; if successful move it to the final file name, if not, delete the 
.tmp.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to