We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd2416 commit a046810Copy full SHA for a046810
android/src/main/java/com/ReactNativeBlobUtil/Response/ReactNativeBlobUtilFileResp.java
@@ -72,10 +72,19 @@ public MediaType contentType() {
72
73
@Override
74
public long contentLength() {
75
- if (originalBody.contentLength() > Integer.MAX_VALUE) {
+
76
+ /**
77
+ *
78
+ * Okio buffer issue in current version seems to be fixed in the latest versions
79
80
+ * limiting this was causing the download progress to stop at 2GB size but files still was downloading
81
82
+ */
83
84
+ // if (originalBody.contentLength() > Integer.MAX_VALUE) {
85
// This is a workaround for a bug Okio buffer where it can't handle larger than int.
- return Integer.MAX_VALUE;
- }
86
+ // return Integer.MAX_VALUE;
87
+ // }
88
return originalBody.contentLength();
89
}
90
0 commit comments