Deprecated
Please look at react-use-upload for the same functionality, updated using React hooks.

@navjobs/upload
v4
I'm working on a v4 soon that simplfies the api and removes the children-as-a-function paradigm to something more extendable. Also revamping the test suit. It'll be a complete rewrite.
What
A set of React components for handling file uploads. If you simply want to turn any component into a file upload dialog, wrap it in our <UploadField/> component that exposes the files after selection. Need to process a file upload and receive the upload progress? Wrap <UploadField/> with <Uploader/>. You can see examples inside our storybook.
Why this?
- Any component can be an upload dialog. Wrap it in
<UploadField/>. This means you have ultimate styling control.
- Simple component API for upload progress. Pass headers, extra fields, anything.
- Zero dependencies (other than React!)
Install
yarn add @navjobs/upload
In this library