@source4society/react-scepter-web-s3-button
v1.2.4
Published
Add your description here
Downloads
26
Readme
react-scepter-web-s3-button
Web button component to select a file from your local computer and upload it to S3
Installation
Using npm
npm install -S @source4society/react-scepter-web-s3-button
Using Yarn
yarn add @source4society/react-scepter-web-s3-button
Setup
Import this container with import S3FileUploadButton from '@source4society/react-scepter-web-s3-button/lib/index
then you can use it as follows:
<S3FileUploadButton signedUrl={anS3SignedUrl} name={uniqueName} id={uniqueId}>Button Text</S3FileUploadButton>
The signedUrl prop should be a signed url retrieved from the AWS S3 SDK. You can read more about it here and there is a prebuild SCEPTER service that can also help SCEPTER-S3PresignedURLService