File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
android/src/main/java/com/ReactNativeBlobUtil/Response Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,19 @@ public MediaType contentType() {
7272
7373 @ Override
7474 public long contentLength () {
75- if (originalBody .contentLength () > Integer .MAX_VALUE ) {
75+
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) {
7685 // This is a workaround for a bug Okio buffer where it can't handle larger than int.
77- return Integer .MAX_VALUE ;
78- }
86+ // return Integer.MAX_VALUE;
87+ // }
7988 return originalBody .contentLength ();
8089 }
8190
You can’t perform that action at this time.
0 commit comments