Skip to content

Commit db4a70c

Browse files
authored
Merge pull request #231 from derneuere/patch-1
Fix CopyToMediaStore documentation
2 parents 816b53a + 9900631 commit db4a70c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,14 +658,14 @@ Android 10 introduced scoped storage and thus new APIs to store files to Documen
658658

659659
#### CopyToMediaStore
660660

661-
Copies an existing file from the internal Storage to the Media Store. <br> An exmaple for downloading a file and storing it to the `downloads` collection
661+
Copies an existing file from the internal Storage to the Media Store. <br> An example for downloading a file and storing it to the `downloads` collection
662662

663663
```js
664664
ReactNativeBlobUtil
665665
.config({
666666
fileCache: true
667667
})
668-
.fetch('GET', 'https://example.de/image.png', {'Accept': 'application/octet-stream'}, JSON.stringify(dat))
668+
.fetch('GET', 'https://example.de/image.png')
669669
.then(async (res) => {
670670
let result = await ReactNativeBlobUtil.MediaCollection.copyToMediaStore({
671671
name: filename, // name of the file

0 commit comments

Comments
 (0)