itinance / itinance/react-native-fs
downloadFile on Android will get overflown if download big file size
Open
- Dominant language
- C++
- Stars
- 5k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
On Android downloadFile will get overflown and contentLength return -1 if downloading large size file over 2GB.
The content length of the resource that this connection's URL references, -1 if the content length is not known, or if the content length is greater than Integer.MAX_VALUE.
https://docs.oracle.com/javase/7/docs/api/java/net/URLConnection.html#getContentLength()
** This is for the record if someone is having the same issue. I have made a pull request for this fix **
Please see: https://github.com/itinance/react-native-fs/pull/583
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.