Then FileTransfer download gets 301 or 302 redirect it storps and storing the HTML from that page instead of the target file. This adds a loop that detects redirect headers and continues following them until a non-redirect page is loaded.
With the new features introduced in XMLHttpRequest, this plugin is not needed any more. Migrating from this plugin to using the new features of XMLHttpRequest, is explained in this Cordova blog post.
Then FileTransfer download gets 301 or 302 redirect it storps and storing the HTML from that page instead of the target file. This adds a loop that detects redirect headers and continues following them until a non-redirect page is loaded.
Based on https://github.com/apache/cordova-plugin-file-transfer/pull/126