[
https://issues.apache.org/jira/browse/CB-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jcesarmobile closed CB-4274.
----------------------------
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
> File uploading with more than 2 GB from device is being terminated from
> device side
> -----------------------------------------------------------------------------------
>
> Key: CB-4274
> URL: https://issues.apache.org/jira/browse/CB-4274
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-file-transfer (DEPRECATED)
> Reporter: Shahid Nawaz
> Priority: Minor
> Labels: Android
>
> Android cordova FileTransfer.java in upload function is using int data type
> to keep bytes size of file to be uploaded, it works fine as long file size is
> less than or equal to 2 GB (i.e. int range 2147483647)
> Problem in FileTransfer.java line 290, and 379: fixedLength = (int)
> ((FileInputStream)sourceInputStream).getChannel().size() + stringLength;
> Where fixedLength is int and upload fails with 0 bytes.
> Remedy: change fixedLength to long should work.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]