react-s3-uploader
Advanced tools
Comparing version 4.5.1 to 4.6.0
##### 4.6.0 | ||
* Add `autoUpload` prop, which can be set to `false` to disable automatic upload [#95] [#107] [#155] | ||
##### 4.5.1 | ||
@@ -3,0 +7,0 @@ |
{ | ||
"name": "react-s3-uploader", | ||
"version": "4.5.1", | ||
"version": "4.6.0", | ||
"description": "React component that renders a file input and automatically uploads to an S3 bucket", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,3 +34,4 @@ "use strict"; | ||
s3path: PropTypes.string, | ||
inputRef: PropTypes.func | ||
inputRef: PropTypes.func, | ||
autoUpload: PropTypes.bool | ||
}, | ||
@@ -58,3 +59,4 @@ | ||
}, | ||
s3path: '' | ||
s3path: '', | ||
autoUpload: true | ||
}; | ||
@@ -101,5 +103,9 @@ }, | ||
type: 'file', | ||
onChange: this.uploadFile, | ||
ref: this.props.inputRef | ||
}; | ||
if ( this.props.autoUpload ) { | ||
additional.onChange = this.uploadFile; | ||
} | ||
var temporaryProps = objectAssign({}, this.props, additional); | ||
@@ -106,0 +112,0 @@ var inputProps = {}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26949
389