Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 29417d3

Browse files
committed
Update README.md
1 parent e733312 commit 29417d3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ If you want to make a file in `External Storage` becomes visible in Picture, Mis
304304
```js
305305

306306
RNFetchBlog
307+
.config({
308+
// DCIMDir is in external storage
309+
path : dirs.DCIMDir + '/music.mp3'
310+
})
307311
.fetch('GET', 'http://example.com/music.mp3')
308312
.then((res) => RNFetchBlob.fs.scanFile([ { path : res.path(), mime : 'audio/mpeg' } ]))
309313
.then(() => {
@@ -316,14 +320,14 @@ RNFetchBlog
316320

317321
If mime is null or undefined, then the mime type will be inferred from the file extension.
318322

319-
**Download Notification and Visibiliy in Download App**
323+
**Download Notification and Visibiliy in Download App (Android Only)**
320324

321-
Generally, when you store a file into
325+
If you want to download success notification or make the stored file visible like the above. You have to add some options to `config`.
322326

323327
```js
324328
RNFetchBlob.config({
325329
fileCache : true,
326-
// android only options
330+
// android only options, these options be a no-op on IOS
327331
addAndroidDownloads : {
328332
// Show notification when response data transmitted
329333
notification : true,
@@ -340,7 +344,6 @@ RNFetchBlob.config({
340344
.then(...)
341345
```
342346

343-
344347
#### File Access
345348

346349
File access APIs were made when developing `v0.5.0`, which helping us write tests, and was not planned to be a part of this module. However I realized that, it's hard to find a great solution to manage cached files, every one who use this moudle may need those APIs for there cases.

0 commit comments

Comments
 (0)