From 6457cc068c5ac56c35cfe45db3098dde4220c247 Mon Sep 17 00:00:00 2001 From: Jonathan Derrough Date: Tue, 5 Apr 2016 10:11:50 +0200 Subject: [PATCH 1/2] Add support for multiple file selection --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 048fcf3..4963a1f 100644 --- a/lib/index.js +++ b/lib/index.js @@ -44,7 +44,8 @@ var FileInput = React.createClass({ onChange: this.handleChange, disabled: this.props.disabled, accept: this.props.accept, - style: this.state.styles.file + style: this.state.styles.file, + multiple: this.props.multiple }), // Emulated file input From 734490c25a507557818bec189508b8fa0ef07564 Mon Sep 17 00:00:00 2001 From: Jonathan Derrough Date: Thu, 26 Jan 2017 17:09:50 +0100 Subject: [PATCH 2/2] Upgrade react peer dependency version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eccaad0..7e835fa 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,6 @@ }, "homepage": "https://github.com/captivationsoftware/react-file-input", "peerDependencies": { - "react": "0.x" + "react": "0.x || 15.x" } }