1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

fix multiple attribute for fine uploader

This commit is contained in:
Tim Daubenschütz 2015-06-25 10:35:25 +02:00
parent f04ab169d6
commit 2f7bbd01b8
3 changed files with 7 additions and 4 deletions

View File

@ -12,7 +12,8 @@ var FileDragAndDrop = React.createClass({
onDragOver: React.PropTypes.func,
onDragEnd: React.PropTypes.func,
filesToUpload: React.PropTypes.array,
handleDeleteFile: React.PropTypes.func
handleDeleteFile: React.PropTypes.func,
multiple: React.PropTypes.bool
},
handleDragStart(event) {
@ -105,7 +106,7 @@ var FileDragAndDrop = React.createClass({
files={this.props.filesToUpload}
handleDeleteFile={this.handleDeleteFile}/>
<input
multiple
multiple={this.props.multiple}
ref="fileinput"
type="file"
style={{

View File

@ -298,7 +298,8 @@ var ReactS3FineUploader = React.createClass({
<FileDragAndDrop
onDrop={this.handleUploadFile}
filesToUpload={this.state.filesToUpload}
handleDeleteFile={this.handleDeleteFile}/>
handleDeleteFile={this.handleDeleteFile}
multiple={this.props.multiple}/>
);
}

View File

@ -187,7 +187,8 @@ let FileUploader = React.createClass( {
let InputDate = React.createClass({
propTypes: {
placeholderText: React.PropTypes.string
placeholderText: React.PropTypes.string,
onChange: React.PropTypes.func
},
getInitialState() {