cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ManuelPaulo (JIRA)" <>
Subject [jira] [Created] (CB-7073) Do not overwrite existing file on transfer fail
Date Thu, 03 Jul 2014 18:29:34 GMT
ManuelPaulo created CB-7073:

             Summary: Do not overwrite existing file on transfer fail
                 Key: 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

View raw message