I am developing a Phonegap application for Android and IOS. I am trying to download a file (.pdf) from a server using FileTransfer () and it works fine. But when I use fileTransfer.onprogress, it seems to upload more than the file size (my file is 20 MB and it downloads 40 MB more than 2x).
fileTransfer.onprogress = function(progressEvent) {
if (progressEvent.lengthComputable) {
var percent = progressEvent.loaded/progressEvent.total;
console.log(percent);
}
};

I do not know why? Can someone explain to me why this is happening?
source
share