From e36b4ceb8241fcc29343a7c9a53460a60ddf1bbb Mon Sep 17 00:00:00 2001 From: Hamid Date: Sat, 12 Jun 2021 13:49:09 +0430 Subject: [PATCH] fix normalizing file:// paths with special characters --- android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java b/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java index a4d70153f..01e98536f 100644 --- a/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java +++ b/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java @@ -1138,9 +1138,6 @@ static String normalizePath(String path) { return null; if(!path.matches("\\w+\\:.*")) return path; - if(path.startsWith("file://")) { - return path.replace("file://", ""); - } Uri uri = Uri.parse(path); if(path.startsWith(RNFetchBlobConst.FILE_PREFIX_BUNDLE_ASSET)) {