[
https://issues.apache.org/jira/browse/CB-8471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-8471.
----------------------------
Resolution: Won't Fix
The plugin has been deprecated and this won't be fixed.
Read the blog post about the alternatives
https://cordova.apache.org/blog/2017/10/18/from-filetransfer-to-xhr2.html
> Impossible to resume FileTransfer download
> ------------------------------------------
>
> Key: CB-8471
> URL: https://issues.apache.org/jira/browse/CB-8471
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-plugin-file-transfer (DEPRECATED)
> Reporter: Mike Dawson
> Priority: Major
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> Problem is when using the FileTransfer plugin to download a file, if the file
> is interrupted it will get automatically deleted. It is therefor impossible
> to implement any kind of resume logic to resume the download and one can only
> restart from scratch. If you are downloading on unreliable networks then
> your chances of ever succeeding will be very poor with larger files.
> This is what happens on Android (FileTransfer.java line 948):
> // Remove incomplete download.
> if (!cached && result.getStatus() != PluginResult.Status.OK.ordinal() && file
> != null) {
> file.delete();
> }
> I suggest there should be an option keepIncompleteDownload that would allow
> the partial download to be kept. Developers could then implement their own
> logic in Javascript to get the next part of the file using range headers and
> concatenate the parts together to reform the whole file.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]