|
@@ -148,6 +148,9 @@ public class RNFetchBlobReq extends BroadcastReceiver implements Runnable {
|
148
|
148
|
if(options.addAndroidDownloads.hasKey("path")) {
|
149
|
149
|
req.setDestinationUri(Uri.parse("file://" + options.addAndroidDownloads.getString("path")));
|
150
|
150
|
}
|
|
151
|
+ if(options.addAndroidDownloads.hasKey("mime")) {
|
|
152
|
+ req.setMimeType(options.addAndroidDownloads.getString("mime"));
|
|
153
|
+ }
|
151
|
154
|
// set headers
|
152
|
155
|
ReadableMapKeySetIterator it = headers.keySetIterator();
|
153
|
156
|
while (it.hasNextKey()) {
|