We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c217fab commit 8a75a9bCopy full SHA for 8a75a9b
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
@@ -148,6 +148,9 @@ public void run() {
148
if(options.addAndroidDownloads.hasKey("path")) {
149
req.setDestinationUri(Uri.parse("file://" + options.addAndroidDownloads.getString("path")));
150
}
151
+ if(options.addAndroidDownloads.hasKey("mime")) {
152
+ req.setMimeType(options.addAndroidDownloads.getString("mime"));
153
+ }
154
// set headers
155
ReadableMapKeySetIterator it = headers.keySetIterator();
156
while (it.hasNextKey()) {
0 commit comments