diff --git a/android/src/main/java/com/RNFetchBlob/Response/RNFetchBlobFileResp.java b/android/src/main/java/com/RNFetchBlob/Response/RNFetchBlobFileResp.java index 8a7447ee0..24018150a 100644 --- a/android/src/main/java/com/RNFetchBlob/Response/RNFetchBlobFileResp.java +++ b/android/src/main/java/com/RNFetchBlob/Response/RNFetchBlobFileResp.java @@ -69,7 +69,11 @@ public long contentLength() { } public boolean isDownloadComplete() { - return bytesDownloaded == contentLength(); + long contentLen = contentLength(); + if (contentLen < 0) + return bytesDownloaded > 0; + + return bytesDownloaded == contentLen; } @Override