react-s3-uploader example
render() {
console.log(this.state.users)
return (
<div className="App">
<header className="App-header">
<h1 className="App-title">Upload an Image</h1>
</header>
<div className="image-holder">
<ReactS3Uploader
signingUrl="/s3/sign"
signingUrlMethod="GET"
accept="image/*"
uploadRequestHeaders={{
'x-amz-acl': 'public-read'
}}
onFinish={this.onUploadFinish}
/>
{this.state.imgURL ? <img src={this.state.imgURL}></img> : ""}
</div>
</div>
);
}