You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Send a HTTP request uses given headers and body, and return a Promise.
@@ -470,10 +470,10 @@ Headers of HTTP request, value of headers should be `stringified`, if you're upl
470
470
Body of the HTTP request, body can either be a BASE64 string, or an array contains object elements, each element have 2 required property `name`, and `data`, and 1 optional property `filename`, once `filename` is set, content in `data` property will be consider as BASE64 string that will be converted into byte array later.
471
471
When body is a base64 string , this string will be converted into byte array in native code, and the request body will be sent as `application/octet-stream`.
Buffer size of read stream, default to `4096` and `4095`(when encoding is `base64`)
589
590
590
591
`readStream` returns a promise which will resolve `RNFetchBlobReadStream`.
@@ -680,8 +681,12 @@ RNFetchBlob.fs.unlink(path)
680
681
681
682
### Types
682
683
684
+
---
685
+
683
686
#### RNFetchBlobConfig
684
687
688
+
---
689
+
685
690
A set of configurations that will be injected into a `fetch` method, with the following properties.
686
691
687
692
#### fileCache:boolean
@@ -698,9 +703,12 @@ A set of configurations that will be injected into a `fetch` method, with the fo
698
703
- mediaScannable : A `boolean` value, see [Officail Document](https://developer.android.com/reference/android/app/DownloadManager.html#addCompletedDownload(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, long, boolean))
699
704
- notification : A `boolean` value decide whether show a notification when download complete.
700
705
706
+
---
701
707
702
708
#### RNFetchBlobResponse
703
709
710
+
---
711
+
704
712
When `fetch` success, it resolve a `FetchBlobResponse` object as first argument. `FetchBlobResponse` object has the following methods (these method are synchronous, so you might take quite a performance impact if the file is big)
A `session` is an object that helps you manage files. It simply main a list of file path and let you use `dispose()`to delete files in this session once and for all.
725
737
726
738
#### add(path:string):RNFetchBlobSession
@@ -736,11 +748,11 @@ A `session` is an object that helps you manage files. It simply main a list of f
736
748
737
749
| Version ||
738
750
|---|---|
739
-
|~0.3.0 | Upload/Download octet-stream and form-data |
740
-
| 0.4.0 | Add base-64 encode/decode library and API |
741
-
| 0.4.1 | Fixe upload form-data missing file extension problem on Android |
742
-
| 0.4.2 | Supports upload/download progress |
743
751
| 0.5.0 | Upload/download with direct access to file storage, and also added file access APIs |
752
+
| 0.4.2 | Supports upload/download progress |
753
+
| 0.4.1 | Fixe upload form-data missing file extension problem on Android |
754
+
| 0.4.0 | Add base-64 encode/decode library and API |
755
+
|~0.3.0 | Upload/Download octet-stream and form-data |
0 commit comments