1.0.2 • Published 5 years ago

@anchorchat/react-s3-uploader v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

react-s3-uploader

A React component that uploads files to a S3 Bucket.

Usage

Install from npm

$ npm i -S @anchorchat/react-s3-uploader

The ReactS3Uploader component accepts the following props:

NameTypeDescriptionRequiredDefault
signingUrlStringGet signed url used for uploading to s3Yes
signingUrlHeadersObjectOptional headers for the signingUrl requestNo{ }
uploadUrlHeadersObjectOptional headers for the upload requestNo{ }
preprocessFunctionDo something before uploadingNo(file, next) => next(file)
onFinishFunctionCallback fired when the uploading is finishedYes
onErrorFunctionCallback fired when an error occurs while uploadingYes

License

This project is licensed under the terms of the MIT license.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago