react-s3-uploader
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "react-s3-uploader", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "React component that renders a file input and automatically uploads to an S3 bucket", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,3 +26,4 @@ "use strict"; | ||
contentDisposition: React.PropTypes.string, | ||
server: React.PropTypes.string | ||
server: React.PropTypes.string, | ||
scrubFilename: React.PropTypes.func | ||
}, | ||
@@ -46,3 +47,6 @@ | ||
server: '', | ||
signingUrlMethod: 'GET' | ||
signingUrlMethod: 'GET', | ||
scrubFilename: function(filename) { | ||
return filename.replace(/[^\w\d_\-\.]+/ig, ''); | ||
} | ||
}; | ||
@@ -66,3 +70,4 @@ }, | ||
contentDisposition: this.props.contentDisposition, | ||
server: this.props.server | ||
server: this.props.server, | ||
scrubFilename: this.props.scrubFilename | ||
}); | ||
@@ -69,0 +74,0 @@ }, |
@@ -189,2 +189,6 @@ react-s3-uploader | ||
##### 4.0.1 | ||
* Don't pass `scrubFilename` prop to `<input>` | ||
##### 4.0.0 | ||
@@ -191,0 +195,0 @@ |
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
23076
348
262