1.2.4 • Published 6 years ago

@source4society/react-scepter-web-s3-button v1.2.4

Weekly downloads
1
License
AGPL-3.0
Repository
github
Last release
6 years ago

react-scepter-web-s3-button

Web button component to select a file from your local computer and upload it to S3

scepter-logo

redux-logo

react-boilerplate

airbnb-codestyle

Build Status

codecov

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