Skip to content
This repository has been archived by the owner on Oct 8, 2018. It is now read-only.

Commit

Permalink
updates readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis authored and Travis committed Apr 27, 2017
1 parent 1b3ff01 commit 11ec6a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ handleFiles = files => {
[HTML5 FileList](https://developer.mozilla.org/en-US/docs/Web/API/FileList)

### Base64
When base64 is true, React File Reader returns a JS Object including both the base64 files and the HTML5 FileList. You can access their values at Object.base64 or Object.fileList

```javascript
handleFiles = (files) => {
console.log(files.base64)
Expand All @@ -81,6 +83,7 @@ handleFiles = (files) => {
```

#### Response

###### multipleFiles={true}
```
["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA", "data:image/png;base64,i..."]
Expand All @@ -99,4 +102,4 @@ handleFiles = (files) => {
```

## Copyright
Copyright (c)2017 [Grillwork Inc](http://grillwork.surge.sh). See [LICENSE](https://github.com/GrillWork/react-file-reader/blob/master/LICENSE) for details.
Copyright (c)2017 [Grillwork Inc](http://grillwork.io). See [LICENSE](https://github.com/GrillWork/react-file-reader/blob/master/LICENSE) for details.

0 comments on commit 11ec6a4

Please sign in to comment.