1.1.0 • Published 12 months ago

st-react-uploader v1.1.0

Weekly downloads
20
License
ISC
Repository
-
Last release
12 months ago

Scribble Tone React Uploader

React drag and drop file uploader for internal Scribble Tone usage. Feel free to use, but no promises that it'll work ;)

Install

npm install --save st-react-uploader

Usage

import {FileUploader} from 'st-react-uploader';

...

<FileUploader
  name='name_of_your_field'
  autoUpload={false}
  awsCredentials={{
    access_key_id: 'your key id',
    acl: 'private',
    policy: 'your base64 encoded policy',
    signature: 'your generated signature'
  }}
  bucketUrl={AppVars.s3TempBucketUrl}
  buildUid={true}
  onSuccess={(r)=>{console.log('success', r)}}
  submitBtnClass='btn'
/>

...

Notes

  • Policy and signature should probably be generated server side and passed in. See s3-authorize gem for ruby.
1.1.0

12 months ago

1.0.0

1 year ago

0.3.0

1 year ago

0.2.9

1 year ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago