0.3.0 • Published 3 months ago

st-react-uploader v0.3.0

Weekly downloads
20
License
ISC
Repository
-
Last release
3 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.
0.3.0

3 months ago

0.2.9

3 months ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago