Answers for "react-s3-uploader example"

1

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>
  );
 }
Posted by: Guest on September-10-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language