1.0.2 • Published 7 years ago

@anchorchat/react-s3-uploader v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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.