Skip to content

Commit

Permalink
document new 'method' param
Browse files Browse the repository at this point in the history
  • Loading branch information
StevePotter committed Jan 24, 2017
1 parent bc7f97f commit fcaed10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ The only React Native http post file uploader with android and iOS background su
import Upload from 'react-native-background-upload'

const options {
url: 'https://myservice.com/path/to/post'
path: 'file://path/to/file/on/device'
url: 'https://myservice.com/path/to/post',
path: 'file://path/to/file/on/device',
method: 'POST',
headers: {
'my-custom-header': 's3headervalueorwhateveryouneed'
}
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Options object:
url: string. url to post to.
path: string. path to the file on the device
headers: hash of name/value header pairs
method: HTTP method to use. Default is "POST"
}
Returns a promise with the string ID of the upload. Will reject if there is a connection problem, the file doesn't exist, or there is some other problem.
Expand Down

0 comments on commit fcaed10

Please sign in to comment.