react s3 uploader example

Solutions on MaxInterview for react s3 uploader example by the best coders in the world

showing results for - "react s3 uploader example"
Amanda
03 Feb 2019
1render() {
2  console.log(this.state.users)
3  return (
4   <div className="App">
5    <header className="App-header">
6     <h1 className="App-title">Upload an Image</h1>
7    </header>
8    <div className="image-holder">
9     <ReactS3Uploader
10      signingUrl="/s3/sign"
11      signingUrlMethod="GET"
12      accept="image/*"
13      uploadRequestHeaders={{
14       'x-amz-acl': 'public-read'
15      }}
16      onFinish={this.onUploadFinish}
17     />
18     
19     {this.state.imgURL ? <img src={this.state.imgURL}></img> : ""}
20    </div>
21   </div>
22  );
23 }
24