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.
2 parents 3f60084 + f563d50 commit 71fcebbCopy full SHA for 71fcebb
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
@@ -177,7 +177,7 @@ public void run() {
177
req.setDescription(options.addAndroidDownloads.getString("description"));
178
}
179
if(options.addAndroidDownloads.hasKey("path")) {
180
- req.setDestinationUri(Uri.parse("file://" + options.addAndroidDownloads.getString("path")));
+ req.setDestinationUri(Uri.fromFile(new File(options.addAndroidDownloads.getString("path"))));
181
182
// #391 Add MIME type to the request
183
if(options.addAndroidDownloads.hasKey("mime")) {
0 commit comments