From cf424a6384ccc7a806b3887d18c4331d5534ed99 Mon Sep 17 00:00:00 2001 From: Travis Mathis Date: Tue, 12 Sep 2017 12:48:00 -0400 Subject: [PATCH 1/2] updates readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f9c3713..2ea1f4c 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ npm install react-file-reader --save ## ChangeLog - 1.1.2 - - fixes an issue where a file couldn't be uploaded twice + - fixes an issue where the same file couldn't be selected twice in a row - 1.1.1 - changes the way we're hiding the input, as previously it would break parent elements that were positioned absolutely. - 1.1.0 From 3a295c627ff6b27f89b5726d72223eaadaa5ee02 Mon Sep 17 00:00:00 2001 From: Travis Mathis Date: Mon, 23 Oct 2017 14:19:50 -0400 Subject: [PATCH 2/2] version bump --- README.md | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2ea1f4c..bd40ea0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ npm install react-file-reader --save ``` ## ChangeLog + - 1.1.3 + - adds the ability to accept multiple fileTypes as an array - 1.1.2 - fixes an issue where the same file couldn't be selected twice in a row - 1.1.1 @@ -31,7 +33,7 @@ npm install react-file-reader --save ## Props ### Default Props - - fileTypes: 'image/*' + - fileTypes: 'image/\*' - multipleFiles: false - base64: false @@ -52,6 +54,7 @@ npm install react-file-reader --save - a `boolean` enforce single file or multiple file selection - fileTypes - React File Reader supports all [HTML input accept attributes](https://www.w3schools.com/tags/att_input_accept.asp). + - Can be passed as a string or an array ## Usage ### Import React File Reader @@ -81,7 +84,7 @@ handleFiles = (files) => { console.log(files.base64) } - + ``` diff --git a/package.json b/package.json index 52e9049..7024b1d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-file-reader", - "version": "1.1.2", + "version": "1.1.3", "description": "A flexible ReactJS component for handling styled HTML file inputs.", "main": "index.js", "repository": "git@github.com:GrillWork/react-file-reader.git",