Update README.md

This commit is contained in:
Chris Dell 2016-05-30 23:41:54 +01:00
parent 45ed423d99
commit 00ad61d3cf
1 changed files with 3 additions and 3 deletions

View File

@ -177,7 +177,7 @@ return RNFS.unlink(path)
}); });
``` ```
### File upload ### File upload (iOS only)
```javascript ```javascript
// require the module // require the module
@ -328,7 +328,7 @@ Percentage can be computed easily by dividing `bytesWritten` by `contentLength`.
Abort the current download job with this ID. The partial file will remain on the filesystem. Abort the current download job with this ID. The partial file will remain on the filesystem.
### `promise uploadFiles(url, files, options [, beginCallback, progressCallback])` ### `promise uploadFiles(url, files, options [, beginCallback, progressCallback])` [iOS only]
`url` (`String`) - URL of server to upload file to `url` (`String`) - URL of server to upload file to
`files` (`Array`) - An array of objects with the file information to be uploaded. `files` (`Array`) - An array of objects with the file information to be uploaded.
@ -367,7 +367,7 @@ If `progressCallback` is provided, it will be invoked continuously and passed a
Percentage can be computed easily by dividing `totalBytesSent` by `totalBytesExpectedToSend`. Percentage can be computed easily by dividing `totalBytesSent` by `totalBytesExpectedToSend`.
### `void stopUpload(jobId)` ### `void stopUpload(jobId)` [iOS only]
Abort the current upload job with this ID. Abort the current upload job with this ID.