Closed Webpal closed 6 years ago
Can one of the admins verify this patch?
I ran into this issue while testing my app on an Android device as well. I modified the code similar to this PR and things work like they should. Please don't overwrite the chunkedMode setting that is being passed in from the JS side.
I wasn't able to receive files in a PHP FastCGI server due it did not allowed chunkedMode if you were over HTTPS. With this patch it works now.
This can be closed, right? https://github.com/apache/cordova-plugin-file-transfer/commit/655489905ab5bd2600d4eaf80e8dd5d27e96b461
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.
Platforms affected
Android
What does this PR do?
File uploads over https were automatically turned to Transfer-encoding: chunked due to old Android issues. Since adding this header to transfers often breaks functionality (for example you can't add an additional header to an Amazon S3 request that was signed without it) - isn't it better to follow the users instruction to use chunked mode or not instead of overwriting it?
What testing has been done on this change?
Only deployed on one Android device, can not verify that it doesn't cause OOM issues - but this option is available as a setting for the user to controll in js.
Checklist