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

Ability to upload request body as iOS Upload Task #576

Open
wants to merge 8 commits into
base: 0.11.0
Choose a base branch
from

Conversation

patrickmontalto
Copy link

Adds the ability to specify IOSUploadTask as a config parameter to RNFetchBlobConfig. Specifying this parameter will create an NSURLSessionUploadTask with the request's body. If the IOSBackgroundTask flag is also set, the body is first written to a temporary file. See commit log for more details.

patrickmontalto and others added 8 commits October 24, 2017 14:18
This enables consistent indentation regardless of the default indentation
settings on a developer's machine.
Comparing two `NSString` objects using pointer equality is undefined.
Rather than specifying an existing file to upload (using the `path` config
option), this change adds the option to write the request body to a temporary
file, and upload it using `NSURLSessionUploadTask`.
@lll000111
Copy link
Contributor

FYI

react-native-fetch-blob has a new maintained location. Check out the README.

Please consider submitting your PR there, this repository is unmaintained.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants