cordova-plugin-pause-resume-download icon indicating copy to clipboard operation
cordova-plugin-pause-resume-download copied to clipboard

This plugin doesn't actually work as intended...

Open chrisweight opened this issue 7 years ago • 1 comments

Hi there,

this plugin doesn't work as intended / named.

The demo does not ever actually 'abort()' the transfer, it reloads the page, which stops the transfer - which leaves the partial file intact, however, if you actually abort the transfer explicitly, the partially downloaded file is removed, so you have to start again.

refreshing the window to 'pause' a download seems a little extreme...really, this needs explicit 'pause/resume' methods that save the file state and then resume it properly.

chrisweight avatar Jul 11 '17 12:07 chrisweight

Just try abort() instead of reload the page.

The method do not clean the partly downloaded file in this plugin.

https://github.com/vaenow/cordova-plugin-pause-resume-download/issues/3

vaenow avatar Jul 11 '17 13:07 vaenow